mirror of
https://github.com/strapi/strapi.git
synced 2025-09-08 16:16:21 +00:00
12 lines
344 B
JavaScript
12 lines
344 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const buildAssociationResolver = (contentTypeUID, attributeName, { type }) => {
|
||
|
return (/*root*/) => {
|
||
|
// const resourceID = root.id;
|
||
|
// return strapi.query(contentTypeUID).load(resourceID, attributeName, args);
|
||
|
return type ? [] : { name: 'foo', rating: 5 };
|
||
|
};
|
||
|
};
|
||
|
|
||
|
module.exports = { buildAssociationResolver };
|