mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 03:50:26 +00:00

* Add an Error object type * Fix typo in collection-type queries definition * Add dynamic zone resolver * Handle empty dynamic zone (no component attached)
8 lines
225 B
JavaScript
8 lines
225 B
JavaScript
'use strict';
|
|
|
|
module.exports = ({ strapi }) => ({
|
|
buildDynamicZoneResolver: ({ contentTypeUID, attributeName }) => async parent => {
|
|
return strapi.db.entityManager.load(contentTypeUID, parent, attributeName);
|
|
},
|
|
});
|