diff --git a/crates/database/src/bootstrap_model/system_metadata.rs b/crates/database/src/bootstrap_model/system_metadata.rs index 8cc9401a..00545f00 100644 --- a/crates/database/src/bootstrap_model/system_metadata.rs +++ b/crates/database/src/bootstrap_model/system_metadata.rs @@ -152,6 +152,17 @@ impl<'a, RT: Runtime> SystemMetadataModel<'a, RT> { self.tx.patch_inner(id, value).await } + /// Get's the object by ID + #[minitrace::trace] + #[convex_macro::instrument_future] + pub async fn get( + &mut self, + id: ResolvedDocumentId, + ) -> anyhow::Result> { + anyhow::ensure!(self.tx.table_mapping().is_system_tablet(id.tablet_id)); + self.tx.get(id).await + } + #[minitrace::trace] #[convex_macro::instrument_future] pub async fn replace(