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

Add support for schema factory #546

Merged
merged 1 commit into from
Jun 10, 2019
Merged

Add support for schema factory #546

merged 1 commit into from
Jun 10, 2019

Conversation

Pavel910
Copy link
Collaborator

Related Issue

Currently, schema plugins only support static definitions of schemas. There is a need for dynamic schema creation, so we can dynamically build schemas (typeDefs and resolvers).

Your solution

graphql-schema plugin now supports schema value as plain object but also as an async function which must return the schema definition.

@Pavel910 Pavel910 self-assigned this Jun 10, 2019
@Pavel910 Pavel910 changed the base branch from master to development June 10, 2019 09:48
@Pavel910 Pavel910 merged commit 62b01eb into development Jun 10, 2019
@Pavel910 Pavel910 deleted the feat/schema-factory branch October 27, 2019 11:53
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.

1 participant