126 Commits

Author SHA1 Message Date
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
Alexandre Bodin
8819379e30 Revert other issue 2023-03-15 19:41:35 +01:00
Ben Irvin
801e3db415 add traverse query
fix single type

fix query

sanitize pagination count params

add comments

Cleanup the params/filters sanitize helpers

sanitize association resolver

Sanitize sort

fix graphql single type

fix graphql types

fix addFindQuery

Sanitize fields

Update sanitize sort to handle all the different formats

Update fields sanitize to handle regular strings & wildcard

Fix non scalar recursion

Add a traverse factory

Add visitor to remove dz & morph relations

Replace the old traverse utils (sort, filters) by one created using the traverse factory

add sanitize populate

await args

fix async and duplicate sanitization

sanitize u&p params

Add traverse fields

Fix traverse & sanitize fields

add traverse fields to nested populate

sanitize admin api filter queries

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

sanitize sort params in admin API

todo

make token fields unsearchable with _q

sanitize delete mutation

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

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

fix errors on queries without ctx

rename findParams to sanitizedParams

Sanitize queries everywhere in the content manager admin controllers

sanitize single type update and delete

Ignore non attribute keys in the sanitize sort

Fix the sanitize query sort for nested string sort

Fix permission check for the admin

typo

sanitize upload

sanitize admin media library

sanitize admin users

Add missing await

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

set U&P users fields to searchable:false

add token support to createContentAPIRequest

add searchable:false to getstarted U&P schema

remove comment

sanitize component resolver

remove await

add searchable false to the file's folder path

Fix admin query when the permission query is set to null

add basic tests for filtering private params

add tests for fields

add pagination tests

Fix admin user fields not being sanitized

Fix convert query params for the morph fragment on undefined value

Traverse dynamic zone on nested populate

Handle nested sort, filters & fields in populate queries + handle populate fragment for morphTo relations

Sanitize 'on' subpopulate

Co-authored-by: Jean-Sébastien Herbaux <Convly@users.noreply.github.com>

don't throw error on invalid attributes

check models for snake case column name instead of assuming they are operators

Add first batch of api tests for params sanitize

Fix sort traversal: handle object arrays

Put back removePassword for fields,sort,filters

Add schemas and fixtures for sanitize api tests

Add tests for relations (sanitize api tests)

Move constant to domain scope

Rename sanitize params to sanitize query

Fix typo

Cleanup fixtures file

Fix variable name conflict

Update packages/core/admin/server/services/permission/permissions-manager/sanitize.js

Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>

Update comment for array filters

Rename sanitize test

Test implicit & explicit array operator for filter

Remove unused code
2023-03-15 14:59:19 +01:00
Ben Irvin
8047092979 make id arg required in singular content type graphql request 2023-02-22 10:52:45 +01:00
Christian Capeans
2a23b26dcb Fix the findParams argument to be passed correctly 2022-11-04 14:28:28 +01:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
Convly
5bf7c58872 Merge branch 'master' into chore/graphql-use-graphql-scalars 2022-08-05 16:33:23 +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
Convly
2a60f6eb54 Move from deprecated packages to graphql-scalars to handle scalar types 2022-08-02 11:45:59 +02:00
Jean-Sébastien Herbaux
9390f681bc
Merge pull request #13793 from ihmpavel/graphql-bounded
feat(graphql): Add bounded cache
2022-08-02 11:01:56 +02:00
Jean-Sébastien Herbaux
ce6c3f911e
Merge pull request #13855 from strapi/fix/dz-populate-same-field-name
Better handle populating of dynamic-zones
2022-08-01 11:31:04 +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
Pierre Noël
952bca2dce better handle populating dz 2022-07-26 17:13:59 +02:00
Alexandre BODIN
bc60b90b9e
Merge pull request #13578 from meherchandan/fix/case-insensitive-equal-filter
fix: added new eqi operator for case insensitive equal search
2022-07-21 15:53:25 +02: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
meherchandan
a7131ca000 fix: review comments and added graphql operator 2022-07-12 16:19:51 +04:00
Convly
38e29b7110 fix style 2022-06-16 13:00:41 +02:00
Convly
34bb591cea Enable filtering on nested components 2022-06-16 10:21:03 +02:00
Gustav Hansen
8aaaff77d4 Chore: Prettify all files 2022-03-29 14:20:41 +02:00
Serge Harb
90e0cc44ee fix: pass cors and bodyParserConfig for apollo mw 2022-03-11 20:17:51 +01:00
Pierre Noël
c0fb7619ef rename toGraphQLName + check enum values don't start with a number 2022-03-03 16:35:41 +01:00
Pierre Noël
e85cfe73f0 allow special characters in an enum 2022-03-03 16:35:41 +01:00
Pierre Noël
f12c0ac4ee keep graphql date value as a string 2022-02-28 16:36:11 +01:00
Convly
d50519d2d6 Add a missing new keyword when trying to format the graphql errors 2022-02-22 12:14:50 +01:00
Convly
97254f8d42 Use strapi.config.get instead of process.env 2022-02-14 14:02:06 +01:00
Convly
974b33b336 Add dedicated configuration option for shouldGenerateArtifacts: generateArtifacts 2022-02-14 13:45:13 +01:00
Convly
ae7731ce31 Add configuration options to generate graphql schema + types 2022-02-14 11:01:24 +01:00
Convly
8270d9c7a4 Fix typo 2022-02-04 17:37:56 +01:00
Convly
fe4645c385 Allow SDL type definitions to beneficiate from Nexus types context & processing 2022-02-04 17:31:53 +01:00
Alexandre BODIN
1489a26bcb
Merge pull request #12080 from strapi/feature/policyError
Add PolicyError error class for use in policies
2022-01-19 10:38:00 +01:00
Jean-Sébastien Herbaux
dd0c256cef
Merge branch 'master' into fix/graphql-enum-not-generated 2022-01-05 16:11:54 +01:00
derrickmehaffy
4dbb64e8a2 change default policies error
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2022-01-03 06:25:18 -07:00
harimkims
f91376c407 Remove console.log
Signed-off-by: harimkims <harimkims@gmail.com>
2021-12-23 11:44:40 +09:00
harimkims
780247117f Fix GraphQL enums are genereated as String type
Signed-off-by: harimkims <harimkims@gmail.com>
2021-12-23 10:59:24 +09:00
Convly
0c558d92fa Take the playgroundAlways option into account for the graphql playground 2021-12-22 17:15:46 +01:00