185 Commits

Author SHA1 Message Date
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
Convly
e2be869d3b Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-07 11:22:43 +02:00
Convly
e76e7462b7 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-09-01 14:10:10 +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
Alexandre Bodin
960578133f Cleanup parse multipart 2021-08-31 19:31:28 +02:00
Alexandre Bodin
8522ef7dfd Add Api load with modules container 2021-08-30 17:02:40 +02:00
Alexandre Bodin
4be69e8bde Init new API loading 2021-08-30 17:02:40 +02:00
Pierre Noël
9362311924 add extend fn to controller registry 2021-08-30 11:00:30 +02:00
Alexandre Bodin
89b02e871e Org package to be consistent, complete package.json and add missing package files 2021-08-28 10:50:46 +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
466161ca70 Merge branch 'v4/backend' into v4/graphql-schema-generation-refactor 2021-08-24 17:58:14 +02:00
Convly
b221633be5 Refactor graphql services architecture. Prefer using the strapi service API when possible 2021-08-24 17:56:44 +02:00
soupette
8cc31618b3 Merge branch 'releases/v4' of github.com:strapi/strapi into improve-bundle 2021-08-24 15:08:34 +02:00
Alexandre Bodin
f4a4e2ce26 Move routes to js when possible and refactor policies to be objects 2021-08-24 13:59:43 +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
Alexandre Bodin
0b3c7392c6 Keep on migrating admin to new structure 2021-08-23 22:41:22 +02:00
Alexandre Bodin
47c3900c07 Update createContentType to expose a simpler object 2021-08-23 22:25:31 +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
Pierre Noël
b592b855a3 fix bad reloading when UP JWT was written in .env 2021-08-23 19:26:13 +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
Pierre Noël
bc56be3560 Merge branch 'pluginAPI/loadPlugin' of github.com:strapi/strapi into pluginAPI/loadPlugin 2021-08-20 16:32:14 +02:00
Pierre Noël
09945a46df fixes 2021-08-20 15:23:02 +02:00
Alexandre Bodin
8252a51ba5 Use a registry for the plugins 2021-08-20 13:12:37 +02:00
Alexandre Bodin
575cbbdc7c Migrate plugin getters 2021-08-19 23:30:49 +02:00
Alexandre Bodin
c3642a4f10 Merge branch 'v4/backend' into pluginAPI/loadPlugin 2021-08-19 23:29:55 +02:00
Pierre Noël
98719b6c64 migrate plugin structures to V4 2021-08-19 16:49:33 +02:00
Alexandre Bodin
f528a865cb Merge branch 'master' of github.com:strapi/strapi into releases/v4 2021-08-19 10:12:58 +02:00
soupette
393bf5f1be Fix PR feedback
Signed-off-by: soupette <cyril@strapi.io>
2021-08-19 09:42:19 +02:00
soupette
48239ab116 Fix conflicts
Signed-off-by: soupette <cyril@strapi.io>
2021-08-19 09:30:45 +02:00
Convly
3796688d7e Clean todos & some duplicated code 2021-08-18 17:57:12 +02:00
Alexandre Bodin
9baf1af73e Fix i18n copy attributes 2021-08-18 16:57:18 +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
Pierre Noël
c547e64571 fix e2e tests 2021-08-18 11:58:17 +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
face75bcba Merge branch 'pluginAPI/loadPlugin' into v4/plugin-api/extensions 2021-08-13 15:43:25 +02:00
Pierre Noël
2d7454553a add extension system for content-types 2021-08-13 15:35:19 +02:00
Convly
cf76db2c18 Merge branch 'releases/v4' into v4/graphql-schema-generation-refactor 2021-08-13 11:11:50 +02:00
Convly
9fc5132a3b Only add the publicationState arg to content type with D&P enabled 2021-08-11 16:26:33 +02:00
Pierre Noël
260e2055c4 Merge branch 'v4/backend' into pluginAPI/loadPlugin 2021-08-11 10:07:03 +02:00
Pierre Noël
9e75d59e15 Fix some E2E tests 2021-08-11 10:05:20 +02:00