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

Create custom schema definitions #7

Open
eojthebrave opened this issue Dec 10, 2019 · 0 comments
Open

Create custom schema definitions #7

eojthebrave opened this issue Dec 10, 2019 · 0 comments

Comments

@eojthebrave
Copy link
Collaborator

We should create custom schema definitions. This will help with issues where a site implements this theme, and for example, hasn't yet added a tutorial with an image (optional Drupal field). So the generated GraphQL schema won't contain the image field, and queries will break. With a custom schema we can at least have queries that return null.

This might help to generate them - https://www.gatsbyjs.org/packages/gatsby-plugin-schema-snapshot/?=schema

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