Update the given items in the collection. Args: items: The items to update in the collection. update_fields: The fields to update. If not provided, all fields in the type will be updated. Only applicable if the item type is a Pydantic BaseModel.
(self, items: Sequence[T], update_fields: Sequence[str] | None = None)
| 259 | raise NotImplementedError() |
| 260 | |
| 261 | async def update(self, items: Sequence[T], update_fields: Sequence[str] | None = None) -> Sequence[T]: |
| 262 | """Update the given items in the collection. |
| 263 | |
| 264 | Args: |
| 265 | items: The items to update in the collection. |
| 266 | update_fields: The fields to update. If not provided, all fields in the type will be updated. |
| 267 | Only applicable if the item type is a Pydantic BaseModel. |
| 268 | |
| 269 | Raises: |
| 270 | ValueError: If an item with the primary keys does not exist. |
| 271 | |
| 272 | Returns: |
| 273 | The items that were updated. |
| 274 | """ |
| 275 | raise NotImplementedError() |
| 276 | |
| 277 | async def upsert(self, items: Sequence[T], update_fields: Sequence[str] | None = None) -> Sequence[T]: |
| 278 | """Upsert the given items into the collection. |
no outgoing calls