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

Feature: allow to ignore types #129

Open
andre-brdoch opened this issue Nov 10, 2020 · 0 comments
Open

Feature: allow to ignore types #129

andre-brdoch opened this issue Nov 10, 2020 · 0 comments

Comments

@andre-brdoch
Copy link

Hey! A common scenario is that non-document schemas are defined in schema.js, like this:

export default createSchema({
  name: 'default',
  types: schemaTypes.concat(
    [
      // documents:
      article,
      category,

      // non-documents:
      link,
      video,
    ]
  ),
});

It would be great if those could be excluded from the graph, since they are effectively just fields, and clutter the graph 😄 If you want, I could make a PR for this 👍

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