Options
All
  • Public
  • Public/Protected
  • All
Menu

External module Set

Index

Functions

xSetJSON

  • xSetJSON(object: object, _dgraph?: any): Mutation
  • xSetJSON is shorthand for:

    const mu = new _dgraph.Mutation();
    mu.setSetJson(object);
    return mu;

    Parameters

    • object: object
    • Default value _dgraph: any = dgraph

    Returns Mutation

xSetJSONCommit

  • xSetJSONCommit(object: object, _dgraph?: any): Mutation
  • xSetJSONCommit is shorthand for:

    const mu = new _dgraph.Mutation();
    mu.setSetJson(object);
    mu.setCommitNow(true);
    return mu;

    Parameters

    • object: object
    • Default value _dgraph: any = dgraph

    Returns Mutation

xSetJSONCommitTxn

  • xSetJSONCommitTxn(object: object, dgraphClient: DgraphClient): Promise<Assigned>
  • xSetJSONCommitTxn is shorthand for:

    const mu = new _dgraph.Mutation();
    mu.setSetJson(object);
    mu.setCommitNow(true);
    return dgraphClient.newTxn().mutate(mu);

    Parameters

    • object: object
    • dgraphClient: DgraphClient

    Returns Promise<Assigned>

Generated using TypeDoc