Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate only InputObject types fix #1170 #1175

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

Vincz
Copy link
Collaborator

@Vincz Vincz commented Mar 30, 2024

Q A
Bug fix? yes
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Documented? yes/no
Fixed tickets #1170
License MIT

The ArgumentsTransformer should not validated arguments that are not Input or list of Input.
For example, if we have a scalar returning an invalid object, we should not validate it on our side.

In our case for example, we have scalars that turn id into doctrine entities so we can get entities in our methods. The scalar is in charge of validating that the object exists, but we shouldn't call the validation on the object returned by the scalar. Anyway, in a query or mutation, we should only validate inputted data through InputObject.

@Vincz Vincz merged commit f990e0b into overblog:master Apr 2, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants