166 Commits

Author SHA1 Message Date
Ben Irvin d708498076 fix(graphql): expose status and hasPublishedVersion on non–D&P root queries for nested relations (#25763)
* fix: keep dp fields on non-dp graphql schema

* chore: comment on future direction
2026-03-18 12:36:55 +01:00
Ziyi 062cd562d0 feat(): add hasPublishedVersion parameter for Document Service (#25292)
* feat(): add hasPublishedVersion parameter for REST API

* fix(): add tests and small fixes

* fix(): fix documentID being overwritten and add tests

* fix(): add filter function so it works for both root and nested queries

* feat(): add parameter for graphQL and tests

* fix(): only add agrs to schema when draft and published is enabled

* test(api): graphql and findfirst tests

* Update packages/core/utils/src/convert-query-params.ts

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>

* fix(): fix graphql nested relation issues, add tests

---------

Co-authored-by: Ben Irvin <ben@innerdvations.com>
Co-authored-by: Ben Irvin <ben.irvin@strapi.io>
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2026-02-18 10:03:29 +00:00
Bassel Kanso 1cedfb3077 fix(graphql): precompute built-in query fields at schema build (#25017) 2025-12-11 13:52:55 +02:00
Bassel Kanso 0d873aea11 fix(graphql): scope status filter inheritance to query tree (#24826) 2025-11-20 10:15:20 +02:00
Dmitry Maklygin e20ea8327a fix: unable to customize cors settings in graphql plugin (#22852)
* fix: unable to customize cors settings in graphql plugin

* fix(graphql): restore CORS configuration support with Strapi 4 compatibility

---------

Co-authored-by: Dmitry Maklygin <dmitry.maklygin@toptal.com>
Co-authored-by: Bassel Kanso <basselkanso82@gmail.com>
2025-11-14 11:03:33 +02:00
Rémi de Juvigny 68883a121b fix: sign file URLs in upload service and in graphql (#23834)
* fix: add URL signing support for media files in upload service and GraphQL resolvers

* fix: graphql api test

* fix: graphql association

* chore: remove unnecessary tests

* fix: sign when querying media files directly

* chore: removed signedData

* fix: backend ci

* fix: pr feedback

* fix: signed images not loading in media input

* fix: make gql unit test pass ci

* chore: move rawData
2025-07-15 12:16:33 -04:00
markkaylor 0b3ba1bea8 fix(graphql): draft and publish document does not forward root query args (#23737) 2025-06-24 15:21:44 +02:00
markkaylor 063e359981 fix: one to many relations returns published and draft versions (#23673) 2025-06-06 17:06:45 +02:00
Alexandre Bodin 0ffa0c9175 feat: ctb lifting 2025-04-22 15:20:00 +02:00
Alexandre Bodin 3be592e7ed Merge branch 'develop' into chore/rollup 2025-01-29 17:47:50 +01:00
Alexandre Bodin 92055a7fb1 chore: use rollup
chore: fetch template only if name matches name convention

chore: linting

chore: fix tests

chore: fix npm scripts

test: try to fix test
2025-01-23 16:28:23 +01:00
Convly 82afe56cec fix: update resolvers to use transformed query parameters for database queries 2025-01-23 09:30:22 +01:00
Ben Irvin bb6d0ed50d enhancement: apollo landing page config (#22285) 2025-01-07 17:42:34 +01:00
Bassel Kanso af5da17207 fix: accessing graphql playground without users-permissions plugin (#22354) 2024-12-06 15:29:04 +02:00
Jean-Sébastien Herbaux fef0f91d51 fix: Remove Private Attributes from GraphQL Filters and Inputs (#21934) 2024-11-25 11:05:48 +01:00
Alexandre Bodin c5892a9f22 chore: upgrade graphql-tools 2024-04-26 09:32:57 +02:00
Alexandre Bodin 57ef329165 chore: make document service method take a single argument object 2024-04-05 11:34:40 +02:00
Alexandre Bodin 198c650550 chore: allow graphql get request with authentication 2024-03-25 18:48:08 +01:00
Alexandre Bodin 78d30d2e60 chore: reintegrate policy logic into core 2024-03-25 08:51:43 +01:00
Alexandre Bodin e68afb0e1e chore: inverse control of contentAPI sanitize & validate 2024-03-21 22:26:41 +01:00
Convly bc9f526e2b chore: refine import statements and remove redundant comments 2024-03-18 11:57:32 +01:00
Christian Capeans 8cb962b8dd Merge branch 'v5/main' of github.com:strapi/strapi into v5/types/v2 2024-03-18 11:11:46 +01:00
Alexandre Bodin 5ffb3c7100 chore: deprecate entity-service and delegate to document service 2024-03-12 21:02:33 +01:00
Convly 011d316a00 Merge branch 'v5/main' into v5/types/v2 2024-03-11 12:15:50 +01:00
Alexandre Bodin 8d53207f8e chore: remove template configuration from utils 2024-03-09 13:08:41 +01:00
Alexandre Bodin 92e54aa49f chore: cleanups 2024-03-08 14:07:59 +01:00
Alexandre Bodin 4b8513e6df chore: migration upload plugin 2024-03-08 10:59:36 +01:00
Alexandre Bodin 279eb4479d chore: migrate graphql plugin to v5 2024-03-07 21:12:36 +01:00
Convly 9100ea9527 chore: lint fix 2024-03-06 16:07:04 +01:00
Convly 6aa57229b3 chore: update Struct.Schema 2024-03-01 17:41:04 +01:00
Convly c425f82942 chore: move Public.UID and Internal.Struct to the root namespace 2024-03-01 15:56:07 +01:00
Convly 5167af6c73 chore: fix build following latest TS type system changes 2024-03-01 14:41:47 +01:00
Ben Irvin 13a2f8b246 feat: Upgrade to Apollo v4
* feat: update and make build work

BREAKING CHANGE: Update from 'apollo-server-koa' to '@apollo/server' and '@as-integrations/koa'

* chore: fix comments

* chore: upgrade graphql-upload package

* chore: fix for body type unknown

* chore: remove old comment

* chore: clean up error handling

* chore: fix comment

* fix: http status codes for input validation errors

* fix: remove unused import

* fix: remove accidental bodyparser

* fix: add new required header to tests

* chore: standardize directive key names to be kebab-case

* test: add some extra message validation

* chore: remove devdep for koa-cors typings

* fix: add unknown error name

* fix: yarn.lock

* fix: add typings

* fix: typings

* fix: typings again

* fix: remove unused imports

* chore: remove unused import

* chore: move playground check to a service

* fix: package imports and versions

* chore: fix yarn.lock

* chore: fix types

* chore: clean up koa typings

* chore: koa typing cleanup

* chore: cleanup koa typings

* chore: more koa type cleanup

* chore: revert missing imports

* chore: cleanup koa typings

* chore: update yarn.lock
2024-01-15 14:54:58 +01:00
Alexandre Bodin 27aa897cbb Merge branch 'develop' into v5/main 2023-11-23 11:52:10 +01:00
Josh eb7b88426d fix(pack-up): ensure we pass the tsconfig file name, not a path to it (#18875)
* fix(pack-up): ensure we pass the tsconfig file name, not a path to it

fix(admin): annotate return type on createBuildContext

fix(admin): ensure shared is a the base folder not importing from server

chore(pack-up): PRINT MOREEEE

fix(ctb): export required type

chore: refactor tsconfigs

* chore: pr amends
2023-11-23 09:16:25 +00:00
Marc-Roig 8aca4eae6a Merge branch 'main' into v5/main 2023-11-09 12:13:13 +01:00
Alexandre BODIN 5c5ae949bf chore(graphql): migration to basic ts (#18696) 2023-11-08 18:21:41 +01:00
Ben Irvin 84033819f8 Fix: GraphQL validates repeatable component attributes correctly (#18647) 2023-11-06 15:01:59 +01:00
Alexandre BODIN 5ae0dc40cd feat!(content-manager): remove the ability to disable draft&publish (#18488)
* feat!: remove draft and publish triggering

* chore: update snapshots and tests

* test: adapt tests
2023-10-24 17:18:59 +01:00
Rémi de Juvigny 4b0773bf8c Fix blocks field not working in GraphQL (#18485) 2023-10-18 12:10:11 +02:00
Marius Diacu d5f51b892d Fix type of file upload uid 2023-09-01 11:16:14 +03:00
Convly 8ceaa69cc0 Add comment about gql single type resolve validation 2023-08-24 14:38:47 +02:00
Convly 4e6503dfa8 Add comments to the single type graphql mutations 2023-08-24 14:29:49 +02:00
Ben Irvin f7022c5177 fix single type sanitization 2023-08-22 12:44:23 +02:00
Ben Irvin 6356087a1a use validate sanitize pattern with graphql 2023-08-16 14:38:49 +02:00
Ben Irvin 995473d959 add utils.validate and replace sanitize usage 2023-08-10 15:24:35 +02:00
Maxime Robert 060a44e0e5 Add $nei operator + translations
Translations:
- ar
- ca
- de
- dk
- en
- es
- eu
- fr
- gu
- hi
- hu
- ja
- ko
- ml
- nl
- pl
- pt-BR
- ru
- sa
- sk
- sv
- tr
- zh
- zh-Hans
2023-07-24 16:24:08 +02:00
Convly e5854ec0de Use getModel instead of contentTypes 2023-07-03 10:13:57 +02:00
Ben Irvin d1ffb4a544 fix pagination query sanitization 2023-06-29 15:59:45 +02:00
Bassel 73d4183253 remove subscriptions-transport-ws package from graphql plugin 2023-03-16 13:52:17 +02:00