Add example in getstarted

This commit is contained in:
Alexandre Bodin 2019-06-12 14:34:49 +02:00
parent c37ba583ba
commit 50fc3a127f
2 changed files with 16 additions and 0 deletions

View File

@ -216,6 +216,7 @@ type Query {
test(id: ID!): MypluginTest
tests(sort: String, limit: Int, start: Int, where: JSON): [MypluginTest]
me: UsersPermissionsMe
userCustomRoute: String
}
input RoleInput {

View File

@ -0,0 +1,15 @@
module.exports = {
query: `
userCustomRoute: String
`,
resolver: {
Query: {
userCustomRoute: {
resolver: {
plugin: 'users-permissions',
handler: 'UsersPermissions.customRoute',
},
},
},
},
};