Logo
Explore Help
Register Sign In
yujunjun/strapi
1
0
Fork 0
You've already forked strapi
mirror of https://github.com/strapi/strapi.git synced 2025-07-27 19:10:01 +00:00
Code Issues Packages Projects Releases Wiki Activity
strapi/packages/plugins/graphql/server/services/builders/resolvers/dynamic-zone.js

10 lines
239 B
JavaScript
Raw Normal View History

[V4] GQL - Handle empty dynamic zone (#10926) * Add an Error object type * Fix typo in collection-type queries definition * Add dynamic zone resolver * Handle empty dynamic zone (no component attached)
2021-09-09 16:45:38 +02:00
'use strict';
module.exports = ({ strapi }) => ({
Use format services for return types in queries & mutationsé
2021-09-22 14:39:36 +02:00
buildDynamicZoneResolver({ contentTypeUID, attributeName }) {
return async parent => {
return strapi.entityService.load(contentTypeUID, parent, attributeName);
};
[V4] GQL - Handle empty dynamic zone (#10926) * Add an Error object type * Fix typo in collection-type queries definition * Add dynamic zone resolver * Handle empty dynamic zone (no component attached)
2021-09-09 16:45:38 +02:00
},
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.5 Page: 883ms Template: 39ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API