Skip to content

Commit

Permalink
FilterType now filters invalid types using oid instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-w-ross committed Aug 13, 2023
1 parent 79edc5a commit 54f2349
Show file tree
Hide file tree
Showing 3 changed files with 648 additions and 548 deletions.
2 changes: 1 addition & 1 deletion src/graphql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3391,7 +3391,7 @@ impl ___Type for FilterEntityType {
// No filtering on composites
.filter(|x| !self.schema.context.is_composite(x.type_oid))
// No filtering on json/b. they do not support = or <>
.filter(|x| !vec!["json", "jsonb"].contains(&x.type_name.as_ref()))
.filter(|x| !vec![3802, 114].contains(&x.type_oid))
.filter_map(|col| {
// Should be a scalar
if let Some(utype) = sql_column_to_graphql_type(col, &self.schema) {
Expand Down
Loading

0 comments on commit 54f2349

Please sign in to comment.