We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I don't think it is possible to render the ... on Droid part of this query using what exists today.
... on Droid
query HeroForEpisode($ep: Episode!) { hero(episode: $ep) { name ... on Droid { primaryFunction } } }
If I can, tell me how and I'll update the documentation if needed :-)
The text was updated successfully, but these errors were encountered:
As far as I can tell, this feature is not implemented. You can use this ugly hack though
(defn inline-fragment [type fields] [(keyword (str "... on " (name type))) fields]) (comment (require '[venia.core :as venia]) (venia/graphql-query {:venia/queries [[:hero {:episode :A_NEW_HOPE} [:name (inline-fragment :Droid [:primaryFunction])]]]}) ;=> "{hero(episode:A_NEW_HOPE){name,... on Droid{primaryFunction}}}" )
Sorry, something went wrong.
desired helper made available via fc786c9 on #42
No branches or pull requests
I don't think it is possible to render the
... on Droid
part of this query using what exists today.If I can, tell me how and I'll update the documentation if needed :-)
The text was updated successfully, but these errors were encountered: