Skip to content

Commit

Permalink
Merge pull request #38 from TomHAnderson/hotfix/id-criteria
Browse files Browse the repository at this point in the history
Allow string filters for ids
  • Loading branch information
TomHAnderson authored Aug 3, 2022
2 parents 248e7a7 + 5f5e208 commit cae3dc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Criteria/CriteriaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ public function get(
];
}

if ($graphQLType !== Type::string()) {
// According to GraphQL id types are represented as strings so
// include string fitlers with ids
if ($graphQLType !== Type::string() && $graphQLType !== Type::id()) {
continue;
}

Expand Down

0 comments on commit cae3dc3

Please sign in to comment.