Options
All
  • Public
  • Public/Protected
  • All
Menu

@graphql-mocks/mirage

Index

Functions

createRouteHandler

  • createRouteHandler(handlerOrOptions: CreateGraphQLHandlerOptions | GraphQLHandler): MirageRouteHandler

mirageCursorForNode

  • mirageCursorForNode(node: any): string

Const mirageFieldResolver

  • mirageFieldResolver(source: any, args: {}, context: any, info: GraphQLResolveInfo): any

mirageMiddleware

  • mirageMiddleware(options?: ReplaceableResolverOption & HighlightableOption): ResolverMapMiddleware

Const mirageTypeResolver

  • mirageTypeResolver(value: any, context: any, info: GraphQLResolveInfo, abstractType: GraphQLAbstractType): PromiseOrValue<Maybe<string | GraphQLObjectType<any, any, {}>>>
  • Parameters

    • value: any
    • context: any
    • info: GraphQLResolveInfo
    • abstractType: GraphQLAbstractType

    Returns PromiseOrValue<Maybe<string | GraphQLObjectType<any, any, {}>>>

Generated using TypeDoc