Ensure edges are stored before indexes in RELATE statements

This commit is contained in:
Tobie Morgan Hitchcock 2022-06-02 09:07:28 +01:00
parent 525b02ca46
commit a9bf09db1e

View file

@ -22,10 +22,10 @@ impl<'a> Document<'a> {
self.field(ctx, opt, txn, stm).await?; self.field(ctx, opt, txn, stm).await?;
// Check if allowed // Check if allowed
self.allow(ctx, opt, txn, stm).await?; self.allow(ctx, opt, txn, stm).await?;
// Store index data
self.index(ctx, opt, txn, stm).await?;
// Store record edges // Store record edges
self.edges(ctx, opt, txn, stm).await?; self.edges(ctx, opt, txn, stm).await?;
// Store index data
self.index(ctx, opt, txn, stm).await?;
// Store record data // Store record data
self.store(ctx, opt, txn, stm).await?; self.store(ctx, opt, txn, stm).await?;
// Run table queries // Run table queries