@graphql-authz/directive
Version:
GraphQL Directive for graphql-authz
7 lines • 396 B
TypeScript
import { RulesObject } from '@graphql-authz/core';
import { GraphQLDirective, GraphQLSchema } from 'graphql';
export declare function authZGraphQLDirective(rules: RulesObject, directiveName?: string): GraphQLDirective;
export declare function authZDirective(directiveName?: string): {
authZDirectiveTransformer: (schema: GraphQLSchema) => GraphQLSchema;
};
//# sourceMappingURL=index.d.ts.map