Skip to content

BatchCreateOptions

Defined in: packages/repo/src/types.ts:562

Options for Repository.batchCreate.

optional contextValues?: ContextValues

Defined in: packages/repo/src/types.ts:591

Advanced: reuse an existing context bag for a nested repository call. When omitted, the repository creates a fresh bag for this operation.


optional readMask?: FieldMask

Defined in: packages/repo/src/types.ts:568

A FieldMask controlling which fields are returned on the created resources. Overrides the repository’s default read mask. Defaults to "*".


optional transaction?: Engine

Defined in: packages/repo/src/types.ts:585

Run the operation within a transaction. When provided, the batch operation participates in the caller’s transaction rather than opening a new one. The caller is responsible for committing or rolling back.


optional validateOnly?: boolean

Defined in: packages/repo/src/types.ts:577

If true, all resources are validated but not persisted. The returned messages reflect what would have been created (including computed etags), but no database writes occur.

https://google.aip.dev/163