Skip to content

Commit d904b6b

Browse files
incrypto32Filippo Costa
authored andcommitted
graph : make entity_field snake case in load_related
1 parent fbf8bee commit d904b6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graph/src/components/store/entity_cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use anyhow::anyhow;
2+
use inflector::Inflector;
23
use std::borrow::Cow;
34
use std::collections::HashMap;
45
use std::fmt::{self, Debug};
@@ -202,7 +203,7 @@ impl EntityCache {
202203

203204
let query = DerivedEntityQuery {
204205
entity_type: EntityType::new(base_type.to_string()),
205-
entity_field: field.name.clone().into(),
206+
entity_field: field.name.clone().to_snake_case().into(),
206207
value: eref.entity_id.clone(),
207208
causality_region: eref.causality_region,
208209
};

0 commit comments

Comments
 (0)