7 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
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
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
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