graph: Return a Result<Option<Entity>, ...> from Store::get
@@ -282,7 +282,7 @@ pub trait Store: Send + Sync {
/// Looks up an entity using the given store key.
// TODO need to validate block ptr
- fn get(&self, key: StoreKey) -> Result<Entity, QueryExecutionError>;
+ fn get(&self, key: StoreKey) -> Result<Option<Entity>, QueryExecutionError>;
/// Queries the store for entities that match the store query.
// TODO need to validate block ptr
