Skip to content
New issue

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

Support __typename introspection #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jamesdabbs
Copy link
Contributor

Hey y'all - big fan of the project. Thanks for your work on it.

I'm currently working on using this as the backend for an Apollo client, which seems to assume that all types will at least support the __typename introspection field for client-side caching purposes. I've been faking it by manually adding an explicit __typename field to every type, but wanted to take a swing at implementing this properly and learning some of the internals and type machinery here.

I added a few tests, but if there's anything else I can do to improve this PR (implementation, documentation, or otherwise) please let me know.

For what it's worth, I'd be interested in continuing to contribute to this project, and would welcome any suggestions for how best to do so. I'm going to explore what I can implement in terms of supporting http://facebook.github.io/graphql/June2018/#sec-Schema-Introspection currently, though it looks like it may require some non-trivial internal changes to support e.g. querying the fields of input objects.

@jml
Copy link
Collaborator

jml commented Aug 21, 2018

@jamesdabbs Thanks for the PRs! Sorry we're lagging a bit in getting to reviewing them.

@jamesdabbs
Copy link
Contributor Author

@jml - no worries at all! I'm in a bit of a busy patch so it'll be a week or so before I can pick up this thread anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants