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 for extending types #27

Open
dnalborczyk opened this issue May 8, 2017 · 0 comments
Open

support for extending types #27

dnalborczyk opened this issue May 8, 2017 · 0 comments

Comments

@dnalborczyk
Copy link
Contributor

It would be nice to support the extend keyword for graphql schema type definitions, it currently doesn't seem to work for graphdoc.

example:
http://dev.apollodata.com/tools/graphql-tools/generate-schema.html#extend-types

apparently it's a [yet] undocumented feature:
graphql/graphql-js#166

simple example/test case:

# Query seems to have at least one field defined, not sure if that will be the case in the future
type Query {
  _dummy: Boolean
}

extend type Query {
  getTask: String
}

schema {
  query: Query
}
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

No branches or pull requests

1 participant