I can add graphql data for the “me” info.
But only as a string.
How can I get products as an Array. (Its a relation-field in the content-builder)
register({ strapi }) {
// Custom User Fields to GraphQl
const extensionService = strapi.plugin('graphql').service('extension');
extensionService.use(({ nexus }) => ({
types: [
nexus.extendType({
type: 'UsersPermissionsMe',
definition(t) {
// here define fields you need
t.string('info');
t.string('products');
},
}),
]
}));
},