-
-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
Description
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 fieldsfoo(nodeId: ID)andfooByUniqueKey(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 manyon the constraint)
Reactions are currently unavailable