39 Commits

Author SHA1 Message Date
Alexandre Bodin
84b41f407e Fix multiple query in one graphql request 2019-10-23 01:20:13 +02:00
Don Masakayan
aa91ca7a96 Made ctx.params and ctx.query available to policies executed via graphql requests 2019-10-16 22:42:47 +08:00
Alexandre Bodin
0a98b13e8d Pass graphqlContext to custom queries 2019-10-07 10:05:08 +02:00
Alexandre Bodin
295c18acbd Fix lint 2019-09-16 23:19:12 +02:00
Alexandre Bodin
c1f818958a Fix bad conversion of id to _id in graphql and aggregations 2019-09-16 23:19:11 +02:00
Don Masakayan
17c4244f14 Pass easier-to-understand options instead of arguments to Mutation.composeMutationResolver() and Query.composeQueryResolver() 2019-09-15 15:51:06 +08:00
Don Masakayan
8d3d79fd18 Simplified ctx.state.user fix 2019-09-15 15:51:05 +08:00
Don Masakayan
0bead70c2c Fixed issue where all policies triggered by GraphQL Mutations and Queries had ctx.state.user as undefined 2019-09-15 15:51:04 +08:00
Alexandre Bodin
2d871abf6a Merge branch 'master' into develop 2019-07-23 11:20:57 +02:00
Aamir Mahmood
1f0a2e3f81 removed extra comments 2019-07-22 14:45:09 +05:00
Aamir Mahmood
fa1da631a1 fixes #3648 if no limit set get it from aomuntLimit 2019-07-22 14:44:17 +05:00
Alexandre Bodin
864a6ecaea Refactor middleware loading 2019-06-11 18:22:07 +02:00
Alexandre Bodin
d9b396821d Fix primaryKey not found for custom resolvers 2019-06-11 15:01:46 +02:00
Alexandre Bodin
3104204e20 Fix amountLimit in graphql queries 2019-06-11 13:56:24 +02:00
Alexandre Bodin
9103e3a2fa Fix missing populate in graphql queries 2019-04-18 12:03:40 +02:00
Alexandre Bodin
0c5b255e75 Fix graphql loaders and add some e2e graphql tests 2019-03-25 16:37:46 +01:00
Alexandre Bodin
d2db6b633f Mongo + graphql v1 2019-03-21 09:07:36 +01:00
Kamal Bennani
4bb9af3fb1 Don't populate any relation in GraphQL context 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
983a12b874 Hot fix primary key detection mutation/query GraphQL 2019-03-15 17:35:33 +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
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
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
Aurélien Georget
53b195c917 Avoid useless population 2018-12-06 19:12:31 +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
Aurelsicoko
21d21dfc8f Handle single fetch & allow override of default auto-population 2018-11-22 18:32:33 +01:00
Kamal Bennani
511ca55461
fix 1st level deep filter 2018-11-19 00:10:48 +01:00
Jim LAURIE
19ec6242f9
Merge branch 'master' into feature/allow-filtering-on-a-relation-attribute 2018-11-16 17:38:27 +01:00
cyril lopez
377da271e4 Fix lint from master 2018-11-05 11:31:36 +01:00
Kamal Bennani
15a41614fa
Don't populate relations in Graphql context 2018-10-28 23:42:22 +01:00
Kamal Bennani
9862705f8f
fix rebase issue 2018-10-28 23:42:21 +01:00
Jason Lei
3378403954 GraphQL Mutations, Aggregations, Decimals
Merging Mutations and Aggregations. Fixed Mongoose Hook to use Decimals (2 decimal places) and Floats (20 decimal places).
2018-09-10 16:05:00 +08:00