Skip to content

Commit

Permalink
graph : make entity_field snake case in load_related
Browse files Browse the repository at this point in the history
  • Loading branch information
incrypto32 authored and neysofu committed Jun 12, 2023
1 parent fbf8bee commit d904b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graph/src/components/store/entity_cache.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::anyhow;
use inflector::Inflector;
use std::borrow::Cow;
use std::collections::HashMap;
use std::fmt::{self, Debug};
Expand Down Expand Up @@ -202,7 +203,7 @@ impl EntityCache {

let query = DerivedEntityQuery {
entity_type: EntityType::new(base_type.to_string()),
entity_field: field.name.clone().into(),
entity_field: field.name.clone().to_snake_case().into(),
value: eref.entity_id.clone(),
causality_region: eref.causality_region,
};
Expand Down

0 comments on commit d904b6b

Please sign in to comment.