Commit graph

196 commits

Author SHA1 Message Date
Jake Barnby
120b788343
Update resolvers for framework changes 2022-10-20 12:22:46 +13:00
Jake Barnby
f6dc7b2068
Add OAuth to blacklist 2022-10-19 13:23:42 +13:00
Jake Barnby
fb5d2fc25c
Abstract setting params to init 2022-10-17 13:27:15 +13:00
Jake Barnby
d163217d1f
Remove Appwrite URL dependency from resolvers 2022-10-14 18:04:23 +13:00
Jake Barnby
a1718e8a44
Remove database dependency from mapper 2022-10-14 18:01:39 +13:00
Jake Barnby
09e0e948b5
Remove resolver database dependency 2022-10-14 18:00:22 +13:00
Jake Barnby
9c372d7335
Fix checking content type with postfixes 2022-10-13 14:32:06 +13:00
Jake Barnby
a2b532ed22
Set dirty property instead of in registry from shutdown 2022-10-13 12:59:32 +13:00
Jake Barnby
5c5bdac3d9
Add route blacklist instead of individual cases 2022-10-13 12:58:28 +13:00
Jake Barnby
9821cc5e18
Check if value has then function when setting result to check external promise types 2022-10-12 21:48:58 +13:00
Jake Barnby
597885028a
Use request setters 2022-10-12 20:55:04 +13:00
Jake Barnby
5debe2c13c
Alias + name fixes 2022-10-12 20:20:44 +13:00
Jake Barnby
b6621f5e87
Restructure schema building 2022-10-12 14:04:11 +13:00
Jake Barnby
39fcbe4d76
Restructure exception 2022-10-12 13:59:35 +13:00
Jake Barnby
4bc44183b6
Restructure type related helpers 2022-10-12 13:57:37 +13:00
Jake Barnby
ee2e8fcc23
Generify promises 2022-10-12 13:55:43 +13:00
Jake Barnby
62038bd2a9
Passthru JSON objects 2022-10-11 12:32:04 +13:00
Jake Barnby
0716c430d6
Fix getting union implementations 2022-10-11 12:31:12 +13:00
Jake Barnby
96bce27642
Cherrypick empty model rules 2022-10-11 12:28:46 +13:00
Jake Barnby
6ac4d4f490
Handle response model union type rules 2022-09-30 19:59:20 +13:00
Jake Barnby
1fbcedec42
Move mapping functions to TypeMapper 2022-09-30 19:58:26 +13:00
Jake Barnby
f1429e8155
Move custom types to their own class 2022-09-30 19:51:27 +13:00
Jake Barnby
df651c3c78
Match class names instead of strings 2022-09-29 19:28:41 +13:00
Jake Barnby
b176929557
Sort schema 2022-09-29 19:27:57 +13:00
Jake Barnby
0471bf1c90
Only allow default values for optional params 2022-09-29 17:54:48 +13:00
Jake Barnby
73d0f033b8
Skip new models with no rules 2022-09-29 17:53:53 +13:00
Jake Barnby
e5b9e261c5
Upcase type names 2022-09-29 17:53:07 +13:00
Jake Barnby
6c81069b27
Custom type serialization fixes 2022-09-29 17:51:53 +13:00
Jake Barnby
63a4853563
Fix list complexity calculations 2022-09-23 15:53:25 +12:00
Jake Barnby
318bea760e
Fix defualt arg types nullability 2022-09-23 13:52:19 +12:00
Jake Barnby
eb818d15e0
Fix custom entity update 2022-09-23 13:49:36 +12:00
Jake Barnby
6e4bad5969
Fix custom entity delete 2022-09-23 13:46:39 +12:00
Jake Barnby
8cd36b2721
Fix custom entity list 2022-09-22 22:48:22 +12:00
Jake Barnby
5f0f136e6e
Refactor methods for clarity 2022-09-22 20:59:47 +12:00
Jake Barnby
2d1cd7cb50
Add queries validators 2022-09-22 18:54:58 +12:00
Jake Barnby
8af0983274
Handle role validator 2022-09-21 21:12:23 +12:00
Jake Barnby
6aee9e0ddb
Update errors 2022-09-21 21:11:05 +12:00
Jake Barnby
6c9ac29f37
Fix attribute unpacking 2022-09-21 19:01:01 +12:00
Jake Barnby
5cefda4ff2
Fix key replacements 2022-09-21 18:24:47 +12:00
Jake Barnby
bf0b416183
Update permissions and queries for 1.0 2022-09-20 19:51:22 +12:00
Jake Barnby
fd37df5f9c
Handle datetime model rules 2022-09-20 19:24:54 +12:00
Jake Barnby
8841f8fe76 Merge remote-tracking branch 'origin/master' into feat-graphql-support
# Conflicts:
#	app/controllers/general.php
#	app/controllers/shared/api.php
#	composer.json
#	composer.lock
2022-08-22 21:13:29 +12:00
Jake Barnby
185624fda1 Return schema by ref 2022-07-25 16:27:07 +12:00
Jake Barnby
fd79922284 Per project keys 2022-07-25 16:26:46 +12:00
Jake Barnby
2c69dbcc22 Allow SDK graphql header in access control 2022-07-22 16:09:15 +12:00
Jake Barnby
1899b3ccd2 Fix order types param 2022-07-21 16:37:21 +12:00
Jake Barnby
5e4dc6ad13 Format 2022-07-19 13:51:30 +12:00
Jake Barnby
404ed4cb1f Update benchmarks 2022-07-19 00:44:02 +12:00
Jake Barnby
e3bed0c636 Test fixes 2022-07-18 21:38:13 +12:00
Jake Barnby
adbb1a1d79 Account for limit param when calculating query complexity 2022-07-18 19:30:54 +12:00
Jake Barnby
03a2a00b30 Check if path contains key before replacing 2022-07-18 19:29:51 +12:00
Jake Barnby
31081b01cb Fix chained promises 2022-07-18 18:47:08 +12:00
Jake Barnby
410d9b0f0c Use statics for anonymous functions 2022-07-18 14:53:49 +12:00
Jake Barnby
1dc557042f Fix lazy matching route replacement parameters 2022-07-18 14:52:41 +12:00
Jake Barnby
4ca6750309 Cleanup controller 2022-07-13 23:21:02 +12:00
Jake Barnby
a656699fa7 Code cleanup 2022-07-13 21:34:56 +12:00
Jake Barnby
ac8e47ac2d Lint 2022-07-13 17:21:41 +12:00
Jake Barnby
3f2037a906 Reduce type re-scanning 2022-07-13 16:44:11 +12:00
Jake Barnby
10a5c24a63 Format and lint 2022-07-12 09:52:00 +12:00
Jake Barnby
de5d0eec06 Get current request context utopia instance in cached resolvers 2022-07-11 18:51:08 +12:00
Jake Barnby
8a9a5bec1e Remove redundant output redirection 2022-07-11 18:43:55 +12:00
Jake Barnby
4d60904cff Resolve request and response from resources 2022-07-11 18:43:15 +12:00
Jake Barnby
c15a90f709 Update logging 2022-07-11 18:41:21 +12:00
Jake Barnby
a589681c3d WIP caching and lazy re-building schema 2022-07-08 17:48:00 +12:00
Jake Barnby
ae32d89a0f Formatting 2022-07-07 19:55:07 +12:00
Jake Barnby
b5e8273839 Fix custom entity id properties 2022-07-07 19:39:42 +12:00
Jake Barnby
4ec637f889 Update input file scalar definition 2022-07-07 12:54:59 +12:00
Jake Barnby
23c52da9f8 Fix input file switch reference 2022-07-07 12:54:44 +12:00
Jake Barnby
67807f8c6f WIP input file handling 2022-07-06 20:56:58 +12:00
Jake Barnby
81265ab458 Fix custom entity tests 2022-07-06 17:12:12 +12:00
Jake Barnby
39233cfe1c Handle event validator parsing 2022-07-06 15:57:14 +12:00
Jake Barnby
96e86f6e4e Explicitly enforce content type of API response on GQL response 2022-07-06 15:51:03 +12:00
Jake Barnby
e36192388d Fix params for GET requests 2022-06-30 21:22:54 +12:00
Jake Barnby
8db6148297 Handle delete routes 2022-06-30 21:22:34 +12:00
Jake Barnby
2eb74d2898 Add data json string property to models with additional data 2022-06-30 21:22:16 +12:00
Jake Barnby
b09e5aac8a Test fixes 2022-06-27 18:46:01 +12:00
Jake Barnby
32e530e757 Fix status code not proxied to outer request on exception 2022-06-27 14:21:44 +12:00
Jake Barnby
5ea41a0253 Print with debug flags if not production 2022-06-22 16:44:58 +12:00
Jake Barnby
7689f7ef6f
WIP allow processing routes with no response 2022-05-04 21:45:36 +12:00
Jake Barnby
1055a00090
Proxy headers, cookies and status code from inner to outer request 2022-05-04 21:19:04 +12:00
Jake Barnby
f7c1a6c4a6
IDE method hint 2022-05-04 21:17:19 +12:00
Jake Barnby
54e672498e
Remove redundant function 2022-05-04 18:47:34 +12:00
Jake Barnby
9deaf335cf
Update document list resolution 2022-05-04 18:47:04 +12:00
Jake Barnby
4180784033
Update document get resolution 2022-05-04 18:46:43 +12:00
Jake Barnby
40d8760dd5
Delegate update to create with patch instead of post 2022-05-04 18:46:22 +12:00
Jake Barnby
f02b73c109
Update delete document resolution 2022-05-04 18:45:37 +12:00
Jake Barnby
4f00b30fca
Add common resolve 2022-05-04 18:45:14 +12:00
Jake Barnby
5b555c8aac
Update document resolve 2022-05-04 18:44:45 +12:00
Jake Barnby
7edbb428d0
Use exposed nested validator 2022-05-04 18:43:51 +12:00
Jake Barnby
6138e4af5d
Static map for default args 2022-05-04 18:42:12 +12:00
Jake Barnby
4020c4413d
Remove redundant param 2022-05-04 18:41:18 +12:00
Jake Barnby
248f19f61e
Allow routes with path params to execute by running match on the modified request 2022-05-03 23:15:41 +12:00
Jake Barnby
21dd2935dd
Fix parameters 2022-05-03 18:27:41 +12:00
Jake Barnby
b78b71b260
Update mutate delete for db collection 2022-05-03 17:41:13 +12:00
Jake Barnby
71a0cb59b5
Defer mutate update to mutate create 2022-05-03 17:41:02 +12:00
Jake Barnby
87333e2eb0
Update mutate create for db collection 2022-05-03 17:40:44 +12:00
Jake Barnby
f31080f52c
Update query list for db collection 2022-05-03 17:40:26 +12:00
Jake Barnby
4b216fccb9
Update query get for db collection 2022-05-03 17:40:12 +12:00
Jake Barnby
fba936c2dc
Correct get list default values 2022-05-03 17:39:47 +12:00
Jake Barnby
c00f20f212
Resolve lower-level attribute inline 2022-05-03 17:39:24 +12:00