Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed May 4, 2022
1 parent 3a957fe commit b863adb
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions graphql/src/store/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,24 +277,6 @@ fn build_child_filter_from_object(
))
}

fn build_fulltext_filter_from_object(
object: &Object,
) -> Result<Option<EntityFilter>, 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<Vec<Value>, QueryExecutionError> {
match value {
Expand Down

0 comments on commit b863adb

Please sign in to comment.