Options
All
  • Public
  • Public/Protected
  • All
Menu

External module Delete

Index

Functions

xDeleteJSON

  • xDeleteJSON(json: any, _dgraph?: any): Mutation
  • xDeleteJson is shorthand for:

    const mu = new _dgraph.Mutation();
    mu.setDeleteJson(json);
    return mu;

    Parameters

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

    Returns Mutation

xDeleteJSONCommit

  • xDeleteJSONCommit(json: any): Mutation
  • xDeleteJsonCommit is shorthand for:

    const mu = new _dgraph.Mutation();
    mu.setDeleteJson(json);
    mu.setCommitNow(true);
    return mu;

    Parameters

    • json: any

    Returns Mutation

xDeleteJSONCommitTxn

  • xDeleteJSONCommitTxn(json: object, dgraphClient: DgraphClient): Promise<Assigned>
  • xDeleteJsonCommit is shorthand for:

    const mu = new _dgraph.Mutation();
    mu.setDeleteJson(json);
    mu.setCommitNow(true);
    dgraphClient.newTxn().mutate(mu);

    Parameters

    • json: object
    • dgraphClient: DgraphClient

    Returns Promise<Assigned>

Generated using TypeDoc