Returns a list of all the keys which exist in the map. :return: The keys in CouchbaseMap
(self)
| 580 | return sd_res.exists(0) |
| 581 | |
| 582 | async def keys(self) -> List[str]: |
| 583 | """ |
| 584 | Returns a list of all the keys which exist in the map. |
| 585 | |
| 586 | :return: The keys in CouchbaseMap |
| 587 | """ |
| 588 | op_type = DatastructureOperationType.MapKeys |
| 589 | async with ObservableRequestHandler(op_type, self._impl.observability_instruments) as ds_obs_handler: |
| 590 | ds_obs_handler.create_kv_span(self._impl._request_builder._collection_dtls.get_details_as_dict()) |
| 591 | map_ = await self._get(parent_span=ds_obs_handler.wrapped_span) |
| 592 | return list(map_.content_as[dict].keys()) |
| 593 | |
| 594 | async def values(self) -> List[str]: |
| 595 | """ |