Options
All
  • Public
  • Public/Protected
  • All
Menu

crm-graph-api

Index

Variables

Const CustomerModel

CustomerModel: Model<Customer & Document, __type> & Customer & Customer = new Customer().getModelForClass(Customer)

Const ObjectIdScalar

ObjectIdScalar: GraphQLScalarType = new GraphQLScalarType({name: 'ObjectId',description: 'Mongo object id scalar type',parseValue(value: string) {return new Types.ObjectId(value) // value from the client input variables},serialize(value: Types.ObjectId) {return value.toHexString() // value sent to the client},parseLiteral(ast) {if (ast.kind === Kind.STRING) {return new Types.ObjectId(ast.value) // value from the client query}return null}})

Functions

bootstrap

  • bootstrap(): Promise<void>

Object literals

Const config

config: object

dbURL

dbURL: string = process.env.DB_URL

Generated using TypeDoc