Nicola Krumschmidt
8b601c5b60
Pass knex instance to applyFilter
...
This fixes a regression introduced in #786 .
When using a SQLite database, items could not be updated any more.
This is due to knex by default only allowing a single connection for
SQLite databases and the item update operation using applyFilter inside
a transaction which tries to use a different knex instance to connect to
the database.
2020-10-28 00:33:53 +01:00
rijkvanzanten
8401c4cdbc
Fix typing of toArray helper
2020-10-26 20:23:20 +01:00
rijkvanzanten
91bfcb875f
Don't auto convert , to arrays in env
...
Fixes #782
2020-10-26 19:38:36 +01:00
rijkvanzanten
c49e1b0279
Extract adding joins to separate function
2020-10-26 18:33:38 +01:00
rijkvanzanten
8ecb8da3ab
Default to _eq for filter
2020-10-26 17:30:27 +01:00
rijkvanzanten
febdd0adbd
Attempt at resolving joins in nested where queries
2020-10-20 11:02:02 -04:00
rijkvanzanten
16cd8838a9
Fix in filter array parsing
2020-10-19 11:43:32 -04:00
rijkvanzanten
3d05b8cbe5
Finish translations
2020-10-16 18:59:00 -04:00
rijkvanzanten
634e58c217
Fix meta validatoin
2020-10-16 16:02:41 -04:00
rijkvanzanten
592ab925db
Add toArray util
2020-10-15 18:00:27 -04:00
rijkvanzanten
cac329c783
Convert env var values that contain , to arrays
2020-10-15 17:45:15 -04:00
rijkvanzanten
2c3992b1f1
Add precision / scale support
...
Fixes #560
2020-10-15 17:22:39 -04:00
rijkvanzanten
5e1a54aee7
Don't treat top level m2os as relational
2020-10-15 10:40:08 -04:00
rijkvanzanten
8e966eb981
Fix *.* not fetching correct current level fields
2020-10-15 10:31:05 -04:00
rijkvanzanten
2023566163
Fix passing transaction to certain sections of relational update
...
Fixes #598
2020-10-14 16:39:24 -04:00
rijkvanzanten
1e628d8915
Validate the used query before running it
2020-10-14 15:31:47 -04:00
WoLfulus
d4fe83f81b
Fix absolute extension path support
2020-10-14 03:28:51 -03:00
rijkvanzanten
9bd054716d
Increase strictness of m2a check
...
Fixes #628
2020-10-13 09:14:14 -04:00
rijkvanzanten
0657e290b4
Fix limit being ignored when offset was used
...
Fixes #522
2020-10-12 17:47:56 -04:00
rijkvanzanten
58dfa5d717
Remove temp fields from m2a
2020-10-09 19:35:41 -04:00
rijkvanzanten
321580dfd4
Build out m2anode in query-to-ast
2020-10-09 17:09:51 -04:00
rijkvanzanten
a16e5774f8
Create M2ANode
2020-10-09 17:01:54 -04:00
rijkvanzanten
9cad3694d9
Merge branch 'main' into many-to-any
2020-10-09 16:49:59 -04:00
rijkvanzanten
b1e34c3b0f
Fix *.* case on non-relational data
2020-10-09 16:49:39 -04:00
rijkvanzanten
b846cc1c5e
wip
2020-10-09 16:48:20 -04:00
rijkvanzanten
d33d877d02
Merge branch 'main' into many-to-any
2020-10-09 15:58:43 -04:00
rijkvanzanten
c140870e90
Use related PK
2020-10-09 15:53:46 -04:00
rijkvanzanten
b0ba488395
Merge main
2020-10-09 15:46:04 -04:00
rijkvanzanten
71dcbc34b7
Return primary keys if no explicit fields are requested
2020-10-09 15:27:55 -04:00
rijkvanzanten
5dba15082f
Handle non-o2m cases
2020-10-09 13:13:49 -04:00
rijkvanzanten
5b91bc3577
Rework nested ast typings to nodes
2020-10-09 13:07:15 -04:00
rijkvanzanten
4afe0175d7
Remove stray test + console log
2020-10-02 11:44:08 -04:00
rijkvanzanten
537fe8f8dd
Allow deep query
2020-10-02 10:34:48 -04:00
rijkvanzanten
551cb19e9a
Dynamically generate graphql schema, resolve using services
2020-10-02 10:34:47 -04:00
rijkvanzanten
58f4c944e0
Update filter structure
2020-10-01 18:08:45 -04:00
rijkvanzanten
c107303f05
Don't accept null as a value in a required field
2020-09-29 17:57:29 -04:00
rijkvanzanten
67b60860df
Use allow null to validate payload on submit
2020-09-29 17:52:38 -04:00
rijkvanzanten
aa0a0f9f6e
Fix datetime using timezones in pg
2020-09-28 17:29:27 -04:00
rijkvanzanten
74ee27a8d6
Throw correct exception in get-email-from-profile util
2020-09-28 12:03:32 -04:00
rijkvanzanten
5ce1028647
Move grant config to root
2020-09-28 12:02:02 -04:00
rijkvanzanten
a5ff0a40c0
Add support for dot notation in filter parameter
...
Fixes #176
2020-09-25 12:40:52 -04:00
rijkvanzanten
b8ec2934ca
Add deep query support
2020-09-23 17:48:41 -04:00
rijkvanzanten
85ca7b5d17
Run prettier
2020-09-22 16:11:28 -04:00
rijkvanzanten
52540e60a3
Fix updating in SQLite
...
Fixes #141 , ref #283
2020-09-18 12:06:46 -04:00
rijkvanzanten
e8b842297c
Move telemetry flag to env
2020-09-17 11:55:45 -04:00
rijkvanzanten
7b2e890925
Add telemetry
2020-09-17 11:52:06 -04:00
rijkvanzanten
b8eff4c788
Use CSV for special, add on create / on update for fields
2020-09-15 17:31:37 -04:00
rijkvanzanten
68e05a208a
Add csv special type, return type based on special flag
2020-09-10 14:14:24 -04:00
rijkvanzanten
272d0593a9
Update typing of generate-joi
2020-09-09 15:20:51 -04:00
rijkvanzanten
be3c414b05
Return validation errors
2020-09-09 15:17:28 -04:00