17158 Commits

Author SHA1 Message Date
Convly
64d9a2031d Fix releases/v4 merge 2021-09-01 14:28:16 +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
070d24fe91
Merge pull request #10829 from strapi/v4/plugin-api/extensions
V4/plugin api/extensions
2021-08-31 15:26:27 +02:00
Alexandre Bodin
9b239fc753 Fix router & routes generation 2021-08-31 12:04:03 +02:00
Alexandre Bodin
c591d93829 Use kebabCase for normalizing api & api CT names 2021-08-31 11:51:11 +02:00
Alexandre Bodin
2013164680 Fix wrong router loop 2021-08-31 10:46:50 +02:00
Alexandre Bodin
7259bc54f6 Fix mapValues wrong arguments 2021-08-30 18:44:08 +02:00
Alexandre Bodin
44cf9e161a Load api policies 2021-08-30 17:02:41 +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
fc7a94d2b8 add extend function for services, content types and policies 2021-08-30 15:39:04 +02:00
Pierre Noël
9a2fe3c715 fix policy test 2021-08-30 11:00:31 +02:00
Pierre Noël
9362311924 add extend fn to controller registry 2021-08-30 11:00:30 +02:00
Alexandre BODIN
45100abdf7
Merge pull request #10783 from strapi/v4/plop-generators
V4/plop generators
2021-08-28 11:12:42 +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
Alexandre Bodin
526a2ce671 Fix model generator 2021-08-27 22:17:51 +02:00
Alexandre Bodin
3ab4da68ab Update eslintignore 2021-08-27 21:38:49 +02:00
Alexandre BODIN
5df607614c
Merge pull request #10790 from strapi/plop-generators/add-args
add api and plugin prompt arguments
2021-08-27 21:35:09 +02:00
Alexandre Bodin
a2c795b843 Use singular url for single types 2021-08-27 21:07:56 +02:00
Alexandre Bodin
9886c61e7b Fix api generator routes to use single & collection types 2021-08-27 20:44:04 +02:00
Alexandre Bodin
e8fe92b154 Fix missing engines property in package.json (thanks marion) 2021-08-27 19:31:09 +02:00
Alexandre Bodin
4f1d9a5f4c Remove old package.json files 2021-08-27 19:25:07 +02:00
Mark Kaylor
f714694031 fix destination path 2021-08-27 18:18:41 +02:00
Mark Kaylor
265c750606 remove relation from list 2021-08-27 16:37:08 +02:00
Mark Kaylor
02058535b9 add image attribute 2021-08-27 16:01:18 +02:00
Mark Kaylor
3f03d9a868 use list for plugins and apis 2021-08-27 16:01:17 +02:00
Mark Kaylor
d198aa5cba fix missing rootDir argument 2021-08-27 16:01:17 +02:00
Mark Kaylor
a500e88129 add enums 2021-08-27 16:01:17 +02:00
Mark Kaylor
19a8c7676d massive refactor 2021-08-27 16:01:16 +02:00
Mark Kaylor
b9c5595aea add attributes 2021-08-27 16:01:16 +02:00
Mark Kaylor
92a12ce1e3 add api and plugin prompt arguments 2021-08-27 16:01:15 +02:00
Mark Kaylor
5411a8e7c9 resolve merge conflicts 2021-08-27 15:06:52 +02:00
Alexandre BODIN
514214c9e3
Merge pull request #10809 from strapi/fix/database-query-typings
Wrap query returns types in Promise
2021-08-27 09:18:20 +02:00
Dieter Stinglhamber
59cad5bcd2 expose typings file in package.json 2021-08-27 09:16:24 +02:00
Dieter Stinglhamber
848df28cdc wrap query returns types in Promise 2021-08-27 08:55:18 +02:00
Alexandre Bodin
c0e71ced20 Add some todos 2021-08-26 13:24:35 +02:00
Alexandre Bodin
e3452f6662 Add functions back to run bootstrap of the app 2021-08-26 12:13:27 +02:00
Convly
88e63a5265 Fix mutation names 2021-08-25 17:50:27 +02:00
Alexandre Bodin
42c1865471 Fix update notifier message typo 2021-08-25 15:20:49 +02:00
Alexandre Bodin
8f5cb90863 Migrate admin policies 2021-08-25 15:16:17 +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
Alexandre Bodin
ddd6747a20 Remove old comment 2021-08-25 14:32:07 +02:00
Alexandre BODIN
0a33c2fe03
Merge pull request #10793 from strapi/v4/remove-old-db-code
Remove old db code
2021-08-24 20:17:26 +02:00
Alexandre Bodin
476d5d4ae7 Remove old db code 2021-08-24 18:55:33 +02:00
Alexandre BODIN
a8d8d4863f
Merge pull request #10791 from strapi/v4/routing
Move routes to js when possible and refactor policies to be objects
2021-08-24 18:38:39 +02:00
Alexandre Bodin
9d7d43b9ec Check policies folder exists 2021-08-24 18:19:28 +02:00
Convly
8db5eabc80 Fix unit test 2021-08-24 18:09:23 +02:00