Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Paper<UserOperations>

Type parameters

Hierarchy

  • Paper

Index

Constructors

constructor

  • new Paper<UserOperations>(graphqlSchema: string | GraphQLSchema | DocumentNode, options?: { operations?: UserOperations }): Paper<UserOperations>
  • Type parameters

    Parameters

    • graphqlSchema: string | GraphQLSchema | DocumentNode
    • Optional options: { operations?: UserOperations }
      • Optional operations?: UserOperations

    Returns Paper<UserOperations>

Properties

Protected current

current: DocumentStore<string>

events

events: EventTarget = ...

Protected history

history: DocumentStore<string>[] = []

hooks

hooks: HooksMap<operations & OperationMap & UserOperations> = ...

Protected mutateQueue

mutateQueue: Queue = ...

operations

operations: operations & UserOperations

Protected sourceGraphQLSchema

sourceGraphQLSchema: GraphQLSchema

validators

validators: { document: DocumentTypeValidator[]; field: FieldValidator[] } = ...

Type declaration

Accessors

data

Methods

Private dispatchEvents

  • dispatchEvents(events: Event[]): void
  • Parameters

    • events: Event[]

    Returns void

find

mutate

  • mutate<T>(fn: T): Promise<ReturnType<T>>

Private validate

Generated using TypeDoc