Skip to main content

talawa-api / Exports / directives/authDirective / AuthenticationDirective

Class: AuthenticationDirective

directives/authDirective.AuthenticationDirective

Hierarchy

  • SchemaDirectiveVisitor

    AuthenticationDirective

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Protected new AuthenticationDirective(config)

Parameters

NameType
configObject
config.argsObject
config.contextObject
config.namestring
config.schemaGraphQLSchema
config.visitedTypeVisitableSchemaType

Inherited from

SchemaDirectiveVisitor.constructor

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:51

Properties

args

args: Object

Index signature

▪ [name: string]: any

Inherited from

SchemaDirectiveVisitor.args

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:31


context

context: Object

Index signature

▪ [key: string]: any

Inherited from

SchemaDirectiveVisitor.context

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:35


name

name: string

Inherited from

SchemaDirectiveVisitor.name

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:30


schema

schema: GraphQLSchema

Inherited from

SchemaDirectiveVisitor.schema

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:4


visitedType

visitedType: VisitableSchemaType

Inherited from

SchemaDirectiveVisitor.visitedType

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:34

Methods

visitArgumentDefinition

visitArgumentDefinition(argument, details): null | void | GraphQLArgument

Parameters

NameType
argumentGraphQLArgument
detailsObject
details.fieldGraphQLField<any, any, { [key: string]: any; }>
details.objectTypeGraphQLObjectType<any, any> | GraphQLInterfaceType

Returns

null | void | GraphQLArgument

Inherited from

SchemaDirectiveVisitor.visitArgumentDefinition

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:12


visitEnum

visitEnum(type): null | void | GraphQLEnumType

Parameters

NameType
typeGraphQLEnumType

Returns

null | void | GraphQLEnumType

Inherited from

SchemaDirectiveVisitor.visitEnum

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:18


visitEnumValue

visitEnumValue(value, details): null | void | GraphQLEnumValue

Parameters

NameType
valueGraphQLEnumValue
detailsObject
details.enumTypeGraphQLEnumType

Returns

null | void | GraphQLEnumValue

Inherited from

SchemaDirectiveVisitor.visitEnumValue

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:19


visitFieldDefinition

visitFieldDefinition(field, _details): null | void | GraphQLField<any, any, { [key: string]: any; }>

This function throws an Unauthenticated error if the context is expired or not authenticated.

Parameters

NameTypeDescription
fieldGraphQLField<any, any, { [key: string]: any; }>GraphQLField
_detailsObjectObject
_details.objectTypeGraphQLObjectType<any, any> | GraphQLInterfaceType-

Returns

null | void | GraphQLField<any, any, { [key: string]: any; }>

resolver function

Overrides

SchemaDirectiveVisitor.visitFieldDefinition

Defined in

src/directives/authDirective.ts:17


visitInputFieldDefinition

visitInputFieldDefinition(field, details): null | void | GraphQLInputField

Parameters

NameType
fieldGraphQLInputField
detailsObject
details.objectTypeGraphQLInputObjectType

Returns

null | void | GraphQLInputField

Inherited from

SchemaDirectiveVisitor.visitInputFieldDefinition

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:23


visitInputObject

visitInputObject(object): null | void | GraphQLInputObjectType

Parameters

NameType
objectGraphQLInputObjectType

Returns

null | void | GraphQLInputObjectType

Inherited from

SchemaDirectiveVisitor.visitInputObject

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:22


visitInterface

visitInterface(iface): null | void | GraphQLInterfaceType

Parameters

NameType
ifaceGraphQLInterfaceType

Returns

null | void | GraphQLInterfaceType

Inherited from

SchemaDirectiveVisitor.visitInterface

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:16


visitObject

visitObject(object): null | void | GraphQLObjectType<any, any>

Parameters

NameType
objectGraphQLObjectType<any, any>

Returns

null | void | GraphQLObjectType<any, any>

Inherited from

SchemaDirectiveVisitor.visitObject

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:8


visitScalar

visitScalar(scalar): null | void | GraphQLScalarType

Parameters

NameType
scalarGraphQLScalarType

Returns

null | void | GraphQLScalarType

Inherited from

SchemaDirectiveVisitor.visitScalar

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:7


visitSchema

visitSchema(schema): void

Parameters

NameType
schemaGraphQLSchema

Returns

void

Inherited from

SchemaDirectiveVisitor.visitSchema

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:6


visitUnion

visitUnion(union): null | void | GraphQLUnionType

Parameters

NameType
unionGraphQLUnionType

Returns

null | void | GraphQLUnionType

Inherited from

SchemaDirectiveVisitor.visitUnion

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:17


getDeclaredDirectives

Static Protected getDeclaredDirectives(schema, directiveVisitors): Object

Parameters

NameType
schemaGraphQLSchema
directiveVisitorsObject

Returns

Object

Inherited from

SchemaDirectiveVisitor.getDeclaredDirectives

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:46


getDirectiveDeclaration

Static getDirectiveDeclaration(directiveName, schema): GraphQLDirective

Parameters

NameType
directiveNamestring
schemaGraphQLSchema

Returns

GraphQLDirective

Inherited from

SchemaDirectiveVisitor.getDirectiveDeclaration

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:38


implementsVisitorMethod

Static implementsVisitorMethod(methodName): boolean

Parameters

NameType
methodNamestring

Returns

boolean

Inherited from

SchemaDirectiveVisitor.implementsVisitorMethod

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:5


visitSchemaDirectives

Static visitSchemaDirectives(schema, directiveVisitors, context?): Object

Parameters

NameType
schemaGraphQLSchema
directiveVisitorsObject
context?Object

Returns

Object

Inherited from

SchemaDirectiveVisitor.visitSchemaDirectives

Defined in

node_modules/graphql-tools/dist/schemaVisitor.d.ts:39