Commit d15dab5a authored by jgutix's avatar jgutix
Browse files

feat(api): add example of permissions for resolvers

parent 3e247782
Pipeline #13661 failed with stages
in 1 minute and 11 seconds
......@@ -4,6 +4,7 @@ const winston = require('winston')
const mailgun = require('nodemailer-mailgun-transport')
const components = require('./components')
const permissions = require('../server/api/permissions')
const mailTransport = mailgun({
auth: {
......@@ -90,4 +91,5 @@ module.exports = {
},
schema: {},
validations: path.join(__dirname, 'validations'),
permissions,
}
/* eslint-disable sort-keys */
const permissions = {
Query: {
globalTeams: async (parent, args, ctx, info) => false,
},
}
module.exports = permissions
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment