QueryCollectionUtils

接口:QueryCollectionUtils<TItem, TKey, TInsertInput>

定义于:packages/query-db-collection/src/query.ts:256

批量操作的写入操作类型

继承自

  • UtilsRecord

类型参数

TItem extends object = Record<string, unknown>

TKey extends string | number = string | number

TInsertInput extends object = TItem

可索引

ts
[key: string]: Fn
[key: string]: Fn

属性

重新获取

ts
refetch: RefetchFn;
refetch: RefetchFn;

定义于:packages/query-db-collection/src/query.ts:261


writeBatch()

ts
writeBatch: (operations) => void;
writeBatch: (operations) => void;

定义于:packages/query-db-collection/src/query.ts:266

参数

操作

SyncOperation<TItem, TKey, TInsertInput>[]

Returns (返回)

void


writeDelete()

ts
writeDelete: (keys) => void;
writeDelete: (keys) => void;

定义于:packages/query-db-collection/src/query.ts:264

参数

TKey | TKey[]

Returns (返回)

void


writeInsert()

ts
writeInsert: (data) => void;
writeInsert: (data) => void;

定义于:packages/query-db-collection/src/query.ts:262

参数

数据

TInsertInput | TInsertInput[]

Returns (返回)

void


writeUpdate()

ts
writeUpdate: (updates) => void;
writeUpdate: (updates) => void;

定义于:packages/query-db-collection/src/query.ts:263

参数

更新

Partial<TItem> | Partial<TItem>[]

Returns (返回)

void


writeUpsert()

ts
writeUpsert: (data) => void;
writeUpsert: (data) => void;

定义于:packages/query-db-collection/src/query.ts:265

参数

数据

Partial<TItem> | Partial<TItem>[]

Returns (返回)

void

我们的合作伙伴
Code Rabbit
Electric
Prisma
订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。

订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。