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-28 03:20:17 +00:00
Code Issues Packages Projects Releases Wiki Activity
strapi/packages/plugins/graphql/server/services/builders/resolvers/dynamic-zone.js

8 lines
222 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 }) => ({
buildDynamicZoneResolver: ({ contentTypeUID, attributeName }) => async parent => {
Declare a new load method in the entity service (#10930)
2021-09-10 10:24:33 +02:00
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: 1830ms Template: 122ms
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