29 Commits

Author SHA1 Message Date
Bassel
73d4183253 remove subscriptions-transport-ws package from graphql plugin 2023-03-16 13:52:17 +02:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Julie Plantey
0bcc4b17d2 Merge branch 'master' of https://github.com/strapi/strapi into features/folder-breadcrumbs 2022-08-02 15:59:27 +02:00
ihmpavel
6ae4e4a968
Merge branch 'strapi:master' into graphql-bounded 2022-07-29 13:59:20 +02:00
Bassel Kanso
66502b797e
Update packages/plugins/graphql/server/bootstrap.js with a comment
Co-authored-by: Ben Irvin <ben@innerdvations.com>
2022-07-27 17:20:02 +03:00
Bassel Kanso
5620190597 remove unneeded async from handler 2022-07-27 16:42:10 +03:00
Bassel Kanso
4436f597d0 authorize /graphql route on GET by default 2022-07-27 16:33:29 +03:00
Bassel Kanso
2eb9b6f001 avoiding auth error in graphql route 2022-07-27 14:59:55 +03:00
ihmpavel
b67d9770fb
Remove unnecessary comment 2022-07-18 19:28:59 +02:00
ihmpavel
fd54a71f37
feat(graphql): Add bounded cache 2022-07-16 00:43:40 +02:00
Serge Harb
90e0cc44ee fix: pass cors and bodyParserConfig for apollo mw 2022-03-11 20:17:51 +01:00
Convly
0c558d92fa Take the playgroundAlways option into account for the graphql playground 2021-12-22 17:15:46 +01:00
Convly
a7592e04a9 use default config instead of the dedicated service 2021-11-10 16:04:32 +01:00
Convly
69d8b20f1b Disable subscriptions by default, change how to handle the type in wrapResolvers 2021-11-10 11:18:35 +01:00
Convly
cf5e4078b5 Merge branch 'releases/v4' of github.com:strapi/strapi into v4/graphql-subscriptions 2021-11-08 17:35:36 +01:00
Pierre Noël
b4c9ad0440 refacto graphql errors 2021-11-04 11:42:43 +01:00
Convly
c1e3c41cbd Handle graphql subscriptions 2021-09-29 13:10:33 +02:00
Pierre Noël
947981200b use { strapi } as params in all lifecycle functions 2021-09-28 16:54:07 +02:00
Convly
667c29bd3a Fix upload & gql-crud e2e tests 2021-09-28 11:11:03 +02:00
Jean-Sébastien Herbaux
22a9cdb9e0
[V4] Fix GraphQL e2e tests (#11034) 2021-09-21 19:38:15 +02:00
Convly
9c48580991 Handle authorization for GraphQL queries & mutations 2021-09-13 10:48:26 +02:00
Jean-Sébastien Herbaux
8d9ea0f13e
[V4] GraphQL - Single types mutations implementation (#10923)
* Use new path for Strapi app attribute

* Add 'uid' to the list of existing Strapi scalars

* Fix single types queries definitions

* Remove ID from single types args

* Remove useless comments

* Fix typos

* Fix localizations populate in i18n core-api createLocalization handler

* Single type custom mutations implementation
2021-09-09 11:31:29 +02:00
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