mirror of
https://github.com/strapi/strapi.git
synced 2025-12-30 00:37:24 +00:00
ignore if populating a scalar attribute
This commit is contained in:
parent
36ecf8c06b
commit
6168d38617
@ -80,7 +80,7 @@ const processPopulate = (populate, ctx) => {
|
||||
}
|
||||
|
||||
if (!types.isRelation(attribute.type)) {
|
||||
throw new Error(`Invalid populate field. Expected a relation, got ${attribute.type}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
// make sure id is present for future populate queries
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user