From 1f5acefa7c3bbd077f3ac3b40fa3b586edc78e8f Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 15 Jun 2022 08:50:59 +0100 Subject: [PATCH] Only store empty value in datastore for record edges --- lib/src/doc/edges.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/doc/edges.rs b/lib/src/doc/edges.rs index 61b6b7eb..c492336a 100644 --- a/lib/src/doc/edges.rs +++ b/lib/src/doc/edges.rs @@ -5,7 +5,7 @@ use crate::dbs::Transaction; use crate::dbs::Workable; use crate::doc::Document; use crate::err::Error; -use crate::sql::dir::Dir; +use crate::sql::Dir; impl<'a> Document<'a> { pub async fn edges( @@ -29,16 +29,16 @@ impl<'a> Document<'a> { if let Workable::Relate(l, r) = &self.extras { // Store the left pointer edge let key = crate::key::graph::new(opt.ns(), opt.db(), &l.tb, &l.id, &Dir::Out, rid); - run.set(key, self).await?; + run.set(key, vec![]).await?; // Store the left inner edge let key = crate::key::graph::new(opt.ns(), opt.db(), &rid.tb, &rid.id, &Dir::In, l); - run.set(key, self).await?; + run.set(key, vec![]).await?; // Store the right inner edge let key = crate::key::graph::new(opt.ns(), opt.db(), &rid.tb, &rid.id, &Dir::Out, r); - run.set(key, self).await?; + run.set(key, vec![]).await?; // Store the right pointer edge let key = crate::key::graph::new(opt.ns(), opt.db(), &r.tb, &r.id, &Dir::In, rid); - run.set(key, self).await?; + run.set(key, vec![]).await?; } // Carry on Ok(())