From d904b6b12903dd0288d254c7e6c6400f61d53831 Mon Sep 17 00:00:00 2001 From: incrypto32 Date: Mon, 12 Jun 2023 13:22:31 +0900 Subject: [PATCH] graph : make entity_field snake case in load_related --- graph/src/components/store/entity_cache.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graph/src/components/store/entity_cache.rs b/graph/src/components/store/entity_cache.rs index 0ce8eb4f5d3..dc8966ca797 100644 --- a/graph/src/components/store/entity_cache.rs +++ b/graph/src/components/store/entity_cache.rs @@ -1,4 +1,5 @@ use anyhow::anyhow; +use inflector::Inflector; use std::borrow::Cow; use std::collections::HashMap; use std::fmt::{self, Debug}; @@ -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, };