diff --git a/graphql/src/store/query.rs b/graphql/src/store/query.rs index a72d14857a0..1d6cd2397b0 100644 --- a/graphql/src/store/query.rs +++ b/graphql/src/store/query.rs @@ -277,24 +277,6 @@ fn build_child_filter_from_object( )) } -fn build_fulltext_filter_from_object( - object: &Object, -) -> Result, QueryExecutionError> { - object.iter().next().map_or( - Err(QueryExecutionError::FulltextQueryRequiresFilter), - |(key, value)| { - if let r::Value::String(s) = value { - Ok(Some(EntityFilter::Equal( - key.clone(), - Value::String(s.clone()), - ))) - } else { - Err(QueryExecutionError::FulltextQueryRequiresFilter) - } - }, - ) -} - /// Parses a list of GraphQL values into a vector of entity field values. fn list_values(value: Value, filter_type: &str) -> Result, QueryExecutionError> { match value {