Skip to content

Returning the results of juniper::execute() in a context function #1109

Answered by tyranron
twiclo asked this question in Q&A
Discussion options

You must be logged in to vote

@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?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@tyranron
Comment options

@twiclo
Comment options

@tyranron
Comment options

@twiclo
Comment options

@tyranron
Comment options

Answer selected by twiclo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants