Skip to content

TypeScript API / laikacms/json-api / decodeAtomicOperationsRequest

Variable: decodeAtomicOperationsRequest ​

ts
const decodeAtomicOperationsRequest: (input, options?) => object;

Parameters ​

ParameterType
inputunknown
options?ParseOptions

Returns ​

object

atomic:operations ​

ts
readonly atomic:operations: readonly (
  | {
  data: {
     attributes?: {
      [key: string]: any;
     };
     id?: string;
     relationships?: {
      [key: string]: any;
     };
     type: string;
  };
  op: "add";
}
  | {
  data: {
     attributes?: {
      [key: string]: any;
     };
     id: string;
     relationships?: {
      [key: string]: any;
     };
     type: string;
  };
  op: "update";
}
  | {
  op: "remove";
  ref: {
     id: string;
     type: string;
  };
})[];

Released under the MIT License.