Options
All
  • Public
  • Public/Protected
  • All
Menu

@unifed/backend-internal-server

This package implements the GraphQL server, which communicates with the frontend of the application.

This is where user authentication is handled.

Resolvers

This directory contains the API calls provided to allow the frontend and backend to communicate.

Services

This directory contains more atomic functions that can be used from within the resolvers directory. The functions in Services mostly deal with manipulating the database.

Index

Variables

Const accountsDatabase

accountsDatabase: Mongo = ...

Const accountsResolvers

accountsResolvers: any = ...

Const accountsSchemaDirectives

accountsSchemaDirectives: SchemaDirectives = ...

Const accountsTypeDefs

accountsTypeDefs: DocumentNode = ...

Const localAlias

localAlias: "this" = "this"

Const server

server: Promise<ApolloServer> = ...

Functions

AuthoriseUser

  • AuthoriseUser(): MethodDecorator

CurrentUser

  • CurrentUser(): ParameterDecorator

Const accountsContext

  • accountsContext(session: any): Promise<ModuleContext<AccountsModuleContext<User>>>

getAddressableHost

  • getAddressableHost(host: string): string

Const getEmailTransporter

  • getEmailTransporter(): Mail

Const getInternalSchema

  • getInternalSchema(container: ContainerInstance): Promise<{ resolvers: ResolversMap<any, any>; typeDefs: string }>

Const getMergedSchema

  • getMergedSchema(container: ContainerInstance): Promise<GraphQLSchema>

normaliseHost

  • normaliseHost(host: string): Promise<string>

translateHost

  • translateHost(host: string): Promise<string>

Generated using TypeDoc