Skip to content

CreateOptions

Options for Repository.create.

optional contextValues?: ContextValues

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

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


optional transaction?: Engine

Run the operation within a transaction.


optional validateOnly?: boolean

If true, the resource is validated but not persisted. The returned message reflects what would have been created (including the computed etag), but no database write occurs.

https://google.aip.dev/163