Is it possible to return dynamic types? #1245
Answered
by
special-character
special-character
asked this question in
General
-
I am implementing full text search for my app and I want my resolver to return an array of with Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
special-character
Jul 21, 2020
Replies: 1 comment
-
For posterity, this is possible with the union type. This is actually the exact example from the graphql docs: https://graphql.org/learn/schema/#union-types |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
special-character
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For posterity, this is possible with the union type. This is actually the exact example from the graphql docs: https://graphql.org/learn/schema/#union-types