Skip to content

Commit

Permalink
Fix authorization federation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrykoala committed Nov 27, 2024
1 parent 0611536 commit ff53ace
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ export class FilterFactory {
throw new Error(`Attribute ${fieldName} not found`);
}

if (!operator && !attribute.isCypherRelationshipField()) {
// This is a bit hacky, basically skipping cypher fields and federation strings being passed to filterFactory
if (!operator && !attribute.annotations.cypher && typeof value === "object") {
const genericFilters = Object.entries(value).flatMap((filterInput) => {
return this.parseGenericFilter(entity, fieldName, filterInput);
});
Expand Down

0 comments on commit ff53ace

Please sign in to comment.