Extend user-permissions GraphQL schema

System Information
  • Strapi Version: 3.2.5
  • Operating System: Linux
  • Database: PostgreSQL
  • Node Version:
  • NPM Version:
  • Yarn Version:

I extended the “schema.graphql.js” (strapi v3.1.4) in this way:

  definition: `
    extend type UsersPermissionsMe {
      customField1: String
      customField2: Boolean
    }
   `

I get this error since the upgrade to strapi 3.2.5:
“Field UsersPermissionsMe.customField1 already exists in the schema. It cannot also be defined in this type extension.”

Any Idea?

SOLVED:
https://github.com/strapi/strapi/pull/8461

Is there documentation for extending user-permissions graphQL plugin schema, specifically? I’m trying to grab some extra fields from the user objects after login, and its proving to be quite difficult to do something very simple.

2 Likes

I know this post was from a while ago, but this is what helped me: GraphQL query "me" get related content · Issue #2627 · strapi/strapi · GitHub

I have the same problem Philip. Did you solved ?