MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / updateByQuery

Function updateByQuery

packages/typesense/src/utils/client.ts:30–42  ·  view source on GitHub ↗
({
  collection,
  filter_by,
  document,
}: {
  collection: string;
  filter_by: string;
  document: object;
})

Source from the content-addressed store, hash-verified

28});
29
30export 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
44export const deleteByQuery = ({
45 collection,

Callers 2

handleChannelTypeUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected