TypeScript API / laikacms/json-api / decodeAtomicOperationsRequest
Variable: decodeAtomicOperationsRequest
ts
const decodeAtomicOperationsRequest: (input, options?) => object;Parameters
| Parameter | Type |
|---|---|
input | unknown |
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;
};
})[];