-
I want my users to be able to say "Give me the results of query x" where they would provide me an object to specify which query they want ran. I can take that ID, get the hashed query from my DB, then run that using Here's my
Can anyone give me some guidance on what I should return here? I doubt it'd be a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@twiclo you want here some sort of dynamic values (not known statically), but GraphQL schema is typed. You, either way, should specify all the possible concrete types returned by Could you describe with a raw GraphQL Schema Language how your schema should look like? |
Beta Was this translation helpful? Give feedback.
@twiclo you want here some sort of dynamic values (not known statically), but GraphQL schema is typed. You, either way, should specify all the possible concrete types returned by
query
resolver. They could be united either under a GraphQL Interface, or under a GraphQL Union. Another way is to use some custom opaque GraphQL scalar type, but in this case you won't be able to interact with its inners inside GraphQL.Could you describe with a raw GraphQL Schema Language how your schema should look like?