fix: query view collection with primaryKey (#3104)

This commit is contained in:
ChengLei Shao 2023-11-28 14:59:43 +08:00 committed by GitHub
parent 0cf045d142
commit 9ed6993130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,7 @@ export class Collection<
`source field "${sourceFieldName}" not found for field "${name}" at collection "${this.name}"`, `source field "${sourceFieldName}" not found for field "${name}" at collection "${this.name}"`,
); );
} else { } else {
options = { ...lodash.omit(sourceField.options, 'name'), ...options }; options = { ...lodash.omit(sourceField.options, ['name', 'primaryKey']), ...options };
} }
} }