Thank you friends for your help!
Today I spent the whole day trying to set up registration for Front Next via Strapi. It was necessary to add two fields - First name and Last Name. Until I came across this page, I was in despair.
But everything was solved super!
Here is my code where I combined UsersPermissionsMe and UsersPermissionsRegisterInput.
register({ strapi }) {
const extensionService = strapi.plugin('graphql').service('extension');
extensionService.use(({ nexus }) => ({
types: [
nexus.extendType({
type: 'UsersPermissionsMe',
definition(t) {
// Здесь определите поля, которые вам нужны для типа UsersPermissionsMe
t.string('firstName');
t.string('lastName');
},
}),
nexus.extendInputType({
type: 'UsersPermissionsRegisterInput',
definition(t) {
// Здесь определите поля, которые вам нужны для типа UsersPermissionsRegisterInput
t.string('firstName');
t.string('lastName');
},
}),
],
}));
},