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

Allow schema to be extendable #791

Closed
rthideaway opened this issue May 28, 2019 · 1 comment
Closed

Allow schema to be extendable #791

rthideaway opened this issue May 28, 2019 · 1 comment

Comments

@rthideaway
Copy link
Contributor

With a release of webonyx 0.13.1 version there is a feature of extending a graphql schema, see:
webonyx/graphql-php#180. This allows to use "extend" keyword for the types already defined to be extended:

extend type Query {
  newQuery(
    input: InputType
  ): ReturnType
}

This is the feature we'd like to use as our graphql schema is spread across multiple modules in *.gql files and our Schema Plugin is discovering those file and gluing them together. But it's unable to extend the types as there is no Schema extender implemented yet in the graphql module. It's also important to say, that for extending the schema you need to explicitly call SchemaExtender of webonyx library to make it work as shown in example webonyx/graphql-php#180 (comment)

Would be cool to have Extendable schema plugin so this feature can be used

@rthideaway
Copy link
Contributor Author

Resolved it with #792

@fubhy fubhy closed this as completed Jun 2, 2019
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

2 participants