System Information
- Strapi Version: 3.3.2
- Operating System: Ubuntu
- Database: Postgres
- Node Version:
- NPM Version:
- Yarn Version:
I’m trying to create a custom plugin for a custom graphql schema.
Yes, i need to create a new custom query to access multiple strapi model services. I don’t need to extend an API Model.
I created the schema.graphql.js file under the plugin directory “config”:
module.exports = {
definition: `
type TestMe {
username: String!
}
`,
query: `
testMe: TestMe
`,
resolver: {
Query: {
TestMe: {
resolver: "plugins::users-permissions.user.me",
}
}
}
};
But I get following error:
error Error: Field “Query.testMe” can only be defined once.
Any idea?