ignore if populating a scalar attribute

This commit is contained in:
Pierre Noël 2022-08-09 12:19:09 +02:00
parent 36ecf8c06b
commit 6168d38617

View File

@ -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