Namespace: operation

Description

Operations module

Function create

Return create operation object for entity type and data.

create(type, data)
Arguments:
  • type (string) – Entity type
  • data (Object) – Entity data to use for creation
Return Object:

API operation

Function query

Return query operation object for expression.

query(expression)
Arguments:
  • expression (string) – API query expression
Return Object:

API operation

Function update

Return update operation object for entity type identified by keys.

update(type, keys, data)
Arguments:
  • type (string) – Entity type
  • keys (Array) – Identifying keys, typically [<entity id>]
  • data (Object) – values to update
Return Object:

API operation

Function delete

Return delete operation object for entity type identified by keys.

delete(type, keys)
Arguments:
  • type (string) – Entity type
  • keys (Array) – Identifying keys, typically [<entity id>]
Return Object:

API operation