-
-
Notifications
You must be signed in to change notification settings - Fork 129
Description
I want to omit some "many" fields on a table (or really, on the whole table).
Unfortunately, the @omit many smart comment only allows me to annotate the table with the foreign key constraint, dropping all its backward relations - instead of having me annotate the referenced table, on which the fields to be dropped are generated. I would enjoy having an omit(foreignTable, "many") check added to the line
graphile-engine/packages/graphile-build-pg/src/plugins/PgBackwardRelationPlugin.js
Line 242 in b6fbfb8
| if (shouldAddManyRelation && !omit(table, "many")) { |
many also on the individual constraints or fields, i.e. at graphile-engine/packages/graphile-build-pg/src/plugins/PgBackwardRelationPlugin.js
Line 69 in b6fbfb8
| if (omit(constraint, "read")) { |
graphile-engine/packages/graphile-build-pg/src/plugins/PgBackwardRelationPlugin.js
Line 103 in b6fbfb8
| if (keys.some(key => omit(key, "read"))) { |