|
I have a method that returns an array and I want to use it as a GraphQL field. For domain separation reasons I can't annotate it as How can I fix the field type in such case? |
Answered by
enumag
Nov 1, 2021
Replies: 1 comment
|
Sorry, my fault. It's supposed to be |
0 replies
Answer selected by
enumag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, my fault. It's supposed to be
#[Field(outputType: '[OtherType!]!')]. That way it seems to work.