You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a table with PRIMARY KEY (first, second, third). This generates CRUD operations like updateTableByFirstAndSecondAndThird.
How to rename all the table's C(R)UD operations to e.g. updateTableByFirst, preserving the db schema's triple primary key?
I've tried smart commenting (COMMENT ON CONSTRAINT "table_pkey" ON "table" IS E'@fieldName tableByFirst';) but this only touches the Read operation -> query tableByFirst.
The text was updated successfully, but these errors were encountered:
I think what might work for you is to rename the mutations that use the primary key only; e.g. updateFooByPk; this is actually a smart idea anyway; I think I might add this to pg-simplify-inflector.
Another option is to use the updateTable(nodeId: ...) mutation.
[semi-automated message] Thanks for your question; hopefully we're well on the way to helping you solve your issue. This doesn't currently seem to be a bug in the library so I'm going to close the issue, but please feel free to keep requesting help below and if it does turn out to be a bug we can definitely re-open it 👍
I'm submitting a ...
PostGraphile version: 4.2.0
I have a table with
PRIMARY KEY (first, second, third)
. This generates CRUD operations likeupdateTableByFirstAndSecondAndThird
.How to rename all the table's C(R)UD operations to e.g.
updateTableByFirst
, preserving the db schema's triple primary key?I've tried smart commenting (
COMMENT ON CONSTRAINT "table_pkey" ON "table" IS E'@fieldName tableByFirst';)
but this only touches the Read operation ->query tableByFirst
.The text was updated successfully, but these errors were encountered: