We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd6c3b commit b715f6dCopy full SHA for b715f6d
1 file changed
packages/graphile-build-pg/src/plugins/PgAllRows.js
@@ -64,7 +64,7 @@ export default (async function PgAllRows(
64
const uniqueIdAttribute = viewUniqueKey
65
? attributes.find(attr => attr.name === viewUniqueKey)
66
: undefined;
67
- if (isView && table.tags.uniqueKey && !uniqueIdAttribute) {
+ if (isView(table) && table.tags.uniqueKey && !uniqueIdAttribute) {
68
throw new Error(
69
`Could not find the named unique key '${table.tags.uniqueKey}' on view '${table.namespaceName}.${table.name}'`
70
);
0 commit comments