Skip to content

Add @omit single smart comment #460

@tinymarsracing

Description

@tinymarsracing

This would be useful for cleaning up your schema. I think an omit for queries by unique indexes (that are generated in addition to byId) is also not available.


BENJIE'S NOTES:

I've renamed the issue; we're currently proposing an @omit single smart comment which would:

  • on a table foos: omit the single root fields foo(nodeId: ID) and fooByUniqueKey(uniqueKey: ...)
  • on a unique constraint: omit the root field fooByUniqueKey(uniqueKey: ...)
  • on a foreign key constraint: omit the "forward" relationship (it would not omit the backward relationship, even if it's a 1-to-1 relationship, to do so you'd use @omit many on the constraint)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions