({
collection,
filter_by,
document,
}: {
collection: string;
filter_by: string;
document: object;
})
| 28 | }); |
| 29 | |
| 30 | export const updateByQuery = ({ |
| 31 | collection, |
| 32 | filter_by, |
| 33 | document, |
| 34 | }: { |
| 35 | collection: string; |
| 36 | filter_by: string; |
| 37 | document: object; |
| 38 | }) => |
| 39 | instance.patch( |
| 40 | `/collections/${collection}/documents?filter_by=${filter_by}`, |
| 41 | document |
| 42 | ); |
| 43 | |
| 44 | export const deleteByQuery = ({ |
| 45 | collection, |
no outgoing calls
no test coverage detected