Class ManagedUpdatesTrait

The base Trait class.

Any core Kosmos or custom application traits must inherit this class and must declare it's own configuration type extending TraitConfigBase interface.

Hierarchy

Constructors

Properties

Trait instance configuration.

_global: boolean = false

Whether this is a global (not bound to any specific schema item) trait instance.

_type?: "managed_updates"

Trait type.

graphqlSchemaManager: GraphQLSchemaManager
updateManager: UpdateManager
mutationAdded: boolean = false

Methods

  • Parameters

    • source: unknown
    • args: {}
      • context: KosmosUserContext<object>
      • info: GraphQLResolveInfo

      Returns Promise<{
          label: string;
          name: string;
          version: string;
          vertex_id: string;
      }[]>

    • This method is triggered when a trait callback has been activated

      Type Parameters

      • RT = any

      • Payload = any

      Parameters

      • callbackName: string

        This is the name of the callback function to call.

      • datasourceWrapper: DataSourceWrapper

        References to the Graph Hanlder

      • data: TraitDataObject<RT, Payload, Promise<any>>

        Request data passed along as part of the request.

      Returns Promise<RT>

    Generated using TypeDoc