diff --git a/authorization.js b/authorization.js index 5a4046bd1e392f8acb81c44680efb6eda630caf7..8e669da8df43f9e4d63f2d58cbe43c225a6ec955 100644 --- a/authorization.js +++ b/authorization.js @@ -7,6 +7,7 @@ const { chain, or, not, + race, } = require('graphql-shield') const isAuthenticated = rule()(async (parent, args, ctx, info) => { @@ -30,6 +31,7 @@ module.exports = { chain, or, not, + race, isAuthenticated, isAdmin, }