Skip to main content

authDirective

Callable

  • authDirective(directiveName?: string): { authDirectiveTransformer: (schema: GraphQLSchema) => GraphQLSchema; authDirectiveTypeDefs: string }

  • Parameters

    • directiveName: string = 'auth'

    Returns { authDirectiveTransformer: (schema: GraphQLSchema) => GraphQLSchema; authDirectiveTypeDefs: string }

    • authDirectiveTransformer: (schema: GraphQLSchema) => GraphQLSchema
        • (schema: GraphQLSchema): GraphQLSchema
        • Parameters

          • schema: GraphQLSchema

          Returns GraphQLSchema

    • authDirectiveTypeDefs: string