Class GraphDBDocument

Hierarchy

  • GraphDBDocument

Constructors

Properties

_internal: {
    id: any;
    isNew: any;
    uri: any;
}

Type declaration

  • id: any
  • isNew: any
  • uri: any
initialData: undefined | {}
model: any
modified: Set<any>
schema: {}

the document's model schema.

Type declaration

    schemaOptions: SchemaOptions

    Get the document's model schemaOptions.

    Accessors

    • get isModified(): boolean
    • Is this document modified and did not push the changes. Also update this.modified array.

      Returns boolean

    Methods

    • Private

      Shallow copy the given data into this.initialData.

      Parameters

      • data: any

      Returns void

    • Parameters

      • iteratedCache: Set<any> = ...

      Returns undefined | boolean

    • Get a property of the document using path.

      Example

      `doc.get('organization.primary_contact')`
      

      Parameters

      • path: string

      Returns undefined | string | number | boolean | GraphDBDocument

    • Parameters

      • fieldKey: any
      • topIndex: number = 0

      Returns {
          currModel: any;
          isArrayType: boolean;
          query: string;
          whereClause: string[];
      }

      • currModel: any
      • isArrayType: boolean
      • query: string
      • whereClause: string[]
    • Returns Promise<{
          instanceName: any;
          query: any;
          queryBody: any;
      }>

    • Parameters

      • key: string | string[]

        The external key to mark modified.

      Returns void

    • Parameters

      • ignoreTransaction: boolean = false
      • iteratedCache: Set<any> = ...

      Returns Promise<void>

    • Set a property of the document using path.

      Example

      `doc.get('organization.primary_contact')`
      

      Parameters

      • path: string
      • obj: any
      • Optional isPopulate: boolean

        Is calling from populate

      Returns undefined | string | number | boolean | GraphDBDocument

    • Override default JSON.stringify behavior. To Plain JS Object, not a string.

      Returns object

    Generated using TypeDoc