Jean-Sébastien Herbaux
2b715a6ee9
V4/graphql configuration ( #10896 )
...
* Use a scalar to register the i18n locale arg
* Remove useless files & comments
* Use custom config for apollo server & the pagination (better handling of pagination)
* Fix missing strapi variable being transmitted to wrapResolvers/parseMiddlewares
* PR review comments
2021-09-07 11:23:49 +02:00
Jean-Sébastien Herbaux
357fd163b0
V4/graphql customization ( #10850 )
...
* Add basic implementation for the graphql extension service
* Add createPolicyContext in @strapi/utils
* policiesMiddleware implementation for graphql
* wrapResolvers first implementation (authentication, middlewares, policies)
* move the content API schema build from /generators to /content-api. Extract types' register functions into a dedicated folder
* fix schema generation on bootstrap
* update the graphql service file to match new services arch
* fix single type queries
* simplify entity's resolver
* use apollo graphql conventions for resolver's args naming
* use the graphql extension system in i18n to add a locale arg to localized queries & mutations
2021-09-01 12:06:51 +02:00
Convly
88e63a5265
Fix mutation names
2021-08-25 17:50:27 +02:00
Convly
a50f93ff1c
Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor
2021-08-25 15:09:15 +02:00
Alexandre Bodin
7f30925161
Merge branch 'v4/backend' into releases/v4
2021-08-25 14:45:59 +02:00
Alexandre Bodin
1ee2d2c483
Merge branch 'master' into releases/v4
2021-08-25 14:44:32 +02:00
Convly
b221633be5
Refactor graphql services architecture. Prefer using the strapi service API when possible
2021-08-24 17:56:44 +02:00
Convly
495a593cc4
Cleanup + move builders & generators to dedicated services
2021-08-24 12:10:47 +02:00
Convly
9c34f0b753
Register the destroy method for the graphql plugin
2021-08-24 11:01:54 +02:00
Convly
4620c330b8
Use strapi.contentTypes[uid] instead of strapi.plugin().contentType() to keep the same data structure
2021-08-23 20:06:34 +02:00
Convly
d293ca52b1
Added warning about data structure discrepancy depending on which method we use to fetch the content types
2021-08-23 19:51:54 +02:00
Convly
21ac45bdfd
Cleanup
2021-08-23 19:49:28 +02:00
Convly
2ea04f1cd4
First working version of graphql rework w/ the new plugin API
2021-08-23 19:47:27 +02:00
Convly
ffe82cad3e
Merge the plugin API into reworked graphql
2021-08-23 19:04:19 +02:00
Convly
40c93fe6c6
Merge branch 'v4/backend' into v4/graphql-schema-generation-refactor
2021-08-23 16:11:57 +02:00
Alexandre Bodin
c3642a4f10
Merge branch 'v4/backend' into pluginAPI/loadPlugin
2021-08-19 23:29:55 +02:00
Alexandre Bodin
f528a865cb
Merge branch 'master' of github.com:strapi/strapi into releases/v4
2021-08-19 10:12:58 +02:00
Convly
3796688d7e
Clean todos & some duplicated code
2021-08-18 17:57:12 +02:00
Convly
0eeaa91c7a
Handle polymorphic relations in assocs resolvers
2021-08-18 16:09:27 +02:00
Convly
c4ae0fad50
Use new fractal format for associations resolvers + update boolean operators
2021-08-18 14:56:46 +02:00
Convly
408fca1055
Update literal definitions wiht KINDS constant
2021-08-16 15:25:38 +02:00
Convly
c4225c0285
use constants instead of literal kinds to register new types
2021-08-16 15:21:00 +02:00
Pierre Noël
2d7454553a
add extension system for content-types
2021-08-13 15:35:19 +02:00
Convly
9fc5132a3b
Only add the publicationState arg to content type with D&P enabled
2021-08-11 16:26:33 +02:00
Convly
d8d99262e3
Update the plugin load
2021-08-10 17:28:53 +02:00
Convly
ddf9932a63
use camelCase for queries & mutations
2021-08-10 16:58:39 +02:00
Convly
9d65315a68
Delete gql hook & use lifecycle functions instead
2021-08-10 11:38:52 +02:00
Convly
e6a139dde7
Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor
2021-08-09 18:41:38 +02:00
Convly
513f66ce9b
Add nested resolvers filtering & fix nested component load
2021-08-09 18:40:25 +02:00
Convly
5aece86258
Bump dependencies
2021-08-09 18:37:25 +02:00
Pierre Noël
18da6e2188
Merge branch 'v4/backend' into pluginAPI/loadPlugin
2021-08-09 11:06:34 +02:00
Alexandre BODIN
6ed18de85b
Rename _sort filter to sort ( #10688 )
2021-08-09 10:22:40 +02:00
Pierre Noël
4790e28284
refactor with module approach
2021-08-06 18:09:49 +02:00
Convly
b02e271c6a
Fix typo
2021-08-06 16:17:15 +02:00
Convly
90ee77141e
Fix resolvers for morph & components, fix inputs type for relation/media
2021-08-06 16:16:07 +02:00
Convly
44272d6f3e
Bump graphql plugin version to 3.6.6
2021-08-05 16:30:48 +02:00
Convly
566e1e78aa
Merge branch 'v4/graphql-resolvers-rewrite' into v4/graphql-schema-generation-refactor
2021-08-05 16:06:31 +02:00
Convly
1919b31843
Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor
2021-08-05 16:05:39 +02:00
Convly
aa2d2bf29a
Handle polymorphic types & relations, clean relational attributes code
2021-08-05 15:57:31 +02:00
Convly
0e8025df6b
Merge branch 'releases/v4' into v4/graphql-resolvers-rewrite
2021-08-05 14:39:16 +02:00
Pierre Noël
ce0e67830a
Merge branch 'v4/backend' into v4/plugin-api/modules
2021-08-05 13:59:40 +02:00
Alexandre Bodin
805e7fdb4b
Merge branch 'master' into releases/v4
2021-08-04 19:24:10 +02:00
Convly
b442d423b6
Remove console.log
2021-07-30 13:47:02 +02:00
Convly
fa3d90f201
use standard filtering for ID in ct findOne query
2021-07-30 13:38:14 +02:00
Convly
02785294f4
Handle pagination, sort & rework + polymorphic relation update
2021-07-30 11:44:26 +02:00
Alexandre Bodin
a7fab84994
Merge branch 'v4/pluginAPI' into pluginAPI/loadPlugin
2021-07-30 10:15:50 +02:00
Alexandre Bodin
89fee54582
Merge branch 'v4/backend' into v4/database
2021-07-30 09:50:40 +02:00
Pierre Noël
eabe72f92e
WIP
2021-07-26 16:59:59 +02:00
Convly
5cd835f986
Merge branch 'v4/graphql-schema-generation-refactor' into v4/graphql-resolvers-rewrite
2021-07-22 10:37:38 +02:00
Convly
d1787ef95d
Rework how we generate schemas for plugins/graphql
2021-07-22 10:05:55 +02:00