-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
[GraphQL] How to specify GraphQL types in DTO? #3422
Comments
I decorated type converter and added support for custom annotation for explicit GraphQL type.
|
Now that it settled down in my head: This solutions gives you complete freedom to customize the GraphQL types of your class, I just introduced the I will close this for now. Maybe later when I will get even more familiar with api-platform I will create a pull request (with tests) to add the annotation in core. |
I am trying to solve #3420 with input class but I can't specify args types properly
but in schema I get
I want Dto fields to match these args
If I set in
ApiResource
both"input"
and"args"
then"input"
is ignored (and I get error"fields must be IRIs"
)The text was updated successfully, but these errors were encountered: