211 Commits

Author SHA1 Message Date
Alexandre Bodin
0c5b255e75 Fix graphql loaders and add some e2e graphql tests 2019-03-25 16:37:46 +01:00
Alexandre Bodin
0066876ce4 Handle groupBy and aggregate 2019-03-22 20:03:19 +01:00
Alexandre Bodin
6fcb38780d Init code cleanup and auto loading of morph realtions in populated path 2019-03-22 17:15:51 +01:00
Alexandre Bodin
d2db6b633f Mongo + graphql v1 2019-03-21 09:07:36 +01:00
Kamal Bennani
07020fc3d6 Use where instead of passing it directly to the count function because the order of the pipelines matters 2019-03-21 09:07:02 +01:00
Kamal Bennani
396f3c8ac0 Don't apply the limit when using loaders 2019-03-21 09:07:02 +01:00
Kamal Bennani
7718968b37 Adapt the aggregator to the new API and add totalCount attribute to the aggregation 2019-03-21 09:07:02 +01:00
Kamal Bennani
4bb9af3fb1 Don't populate any relation in GraphQL context 2019-03-21 09:07:02 +01:00
Kamal Bennani
2dfde5a152 Re-adapt loader to work with manyToMany relationship 2019-03-21 09:07:02 +01:00
Kamal Bennani
0d9626b165 Fix issue when the relation is populated or not (Bookshelf) 2019-03-21 09:07:02 +01:00
Kamal Bennani
19c696ff25 Adapt Loader service to the new API 2019-03-21 09:07:02 +01:00
Kamal Bennani
2bdbf12b0a Simplify GraphQL resolver and adapt the ContentManager to the new changes 2019-03-21 09:07:02 +01:00
Alexandre Bodin
7ab8eb4c56 Fix missing _ in the convertParams graphql queries 2019-03-15 21:03:22 +01:00
Jim LAURIE
2f31050a68 Add primary key ref 2019-03-15 17:49:46 +01:00
Jim LAURIE
983a12b874 Hot fix primary key detection mutation/query GraphQL 2019-03-15 17:35:33 +01:00
Jim LAURIE
d22bc090f1
Merge branch 'master' into fix/2530 2019-03-07 15:55:14 +01:00
Jim LAURIE
8241863444
Merge branch 'master' into enhancement/bigint 2019-03-07 13:42:16 +01:00
DMehaffy
8a20a151d0 Temporary fix for SQL Mutation Updates 2019-03-07 02:54:19 -07:00
Pierre Burgy
51b5ea7b3f Fix findOne query for GraphQL 2019-02-17 14:35:41 +01:00
DMehaffy
339c756e05
Merge branch 'master' into enhancement/bigint 2019-01-30 23:04:39 -07:00
Jim LAURIE
493e7a069f
Don't need this mapping since it's the same key 2019-01-30 17:51:23 +01:00
DESKTOP-9GMDKNB\NeOMakinG
a116da2927 Using object.assign with custom vars in key 2019-01-28 21:03:05 +01:00
DESKTOP-9GMDKNB\NeOMakinG
fdca337473 Using single quotes 2019-01-28 20:57:11 +01:00
DESKTOP-9GMDKNB\NeOMakinG
aec28dfb94 Update timestamps since _get changed 2019-01-28 20:51:16 +01:00
DESKTOP-9GMDKNB\NeOMakinG
e6e6515d6e Apply custom timestamps to graphql 2019-01-25 14:37:22 +01:00
DESKTOP-9GMDKNB\NeOMakinG
897bd447e4 Fixing GraphQL timestamps due to #2556 2019-01-25 12:59:22 +01:00
Aurélien Georget
8e2169f005 Fix SQL query where oneWay relationship is null 2019-01-24 11:09:45 +01:00
Jim LAURIE
f90255bb75
Merge branch 'master' into issue/2327 2019-01-22 13:52:13 +01:00
Aurélien Georget
4f2928339a Reset loaders instead of clearing cache 2019-01-22 13:47:44 +01:00
Aurélien Georget
2b37315f07 Fix where on relational fields 2019-01-22 12:16:46 +01:00
DMehaffy
d656077399 add a few more bigint 2019-01-21 05:11:48 -07:00
Aurélien Georget
176aa52df0 Avoid duplicate loaders 2019-01-16 17:26:15 +01:00
Aurélien Georget
c8a0e51729 Fix where constraint in GraphQL query 2019-01-16 12:24:29 +01:00
Aurélien Georget
332cfdacab Apply PR's feedback 2019-01-15 17:16:28 +01:00
Aurélien Georget
5df5933ec4 Fix loader name 2019-01-14 19:36:35 +01:00
Jim LAURIE
e41948de3f Add setting for production environment 2019-01-09 14:19:39 +01:00
Aurélien Georget
b501e8bb1b Resolve conflicts 2019-01-05 20:33:47 +01:00
Aurélien Georget
2df5ecae79 Reset loaders on every request to avoid wrong results coming from cache 2019-01-05 18:14:00 +01:00
Abdón Rodríguez Davila
a5dc07c0a5 Avoid write files if not development environment 2018-12-19 19:25:52 +01:00
Aurélien Georget
53b195c917 Avoid useless population 2018-12-06 19:12:31 +01:00
Aurélien Georget
ebf9cfdcaa Handle one-to-many case 2018-12-06 18:23:56 +01:00
Aurélien Georget
e1ce257d2f Revert codebase and apply limit, skip, start and sort parameters 2018-12-06 18:11:53 +01:00
Jim LAURIE
03c1e04d87 Revert filter PR 2018-12-04 17:05:03 +01:00
DMehaffy
2b38a92277 Add GraphQL limit settings 2018-11-29 03:46:30 -07:00
Aurélien Georget
b0aaae9f12 Resolve conflicts 2018-11-27 18:48:37 +01:00
Aurélien Georget
540e1bccf8 Allow private attribute into input definition 2018-11-27 14:59:28 +01:00
Aurélien Georget
143f92a338 Follow generated GraphQL input to return data 2018-11-26 18:32:35 +01:00
Aurélien Georget
6fd3319f18 Generate different input for edit mutation 2018-11-26 17:36:49 +01:00
Aurelsicoko
4e23e872ed Support one-to-one relationship with DataLoader 2018-11-23 17:46:43 +01:00
Aurelsicoko
639c635885 Use the PK of referring model as an alias 2018-11-23 17:33:41 +01:00