content-model-graph icon indicating copy to clipboard operation
content-model-graph copied to clipboard

Feature: allow to ignore types

Open andre-brdoch opened this issue 5 years ago • 0 comments

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 👍

andre-brdoch avatar Nov 10 '20 09:11 andre-brdoch