Skip to content

Commit

Permalink
map in ndc operator to mongodb operator
Browse files Browse the repository at this point in the history
  • Loading branch information
hallettj committed Sep 24, 2024
1 parent 2e0696e commit 9047490
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions crates/mongodb-agent-common/src/comparison_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pub enum ComparisonFunction {
Equal,
NotEqual,

In,

Regex,
/// case-insensitive regex
IRegex,
Expand All @@ -33,6 +35,7 @@ impl ComparisonFunction {
C::GreaterThanOrEqual => "_gte",
C::Equal => "_eq",
C::NotEqual => "_neq",
C::In => "_in",
C::Regex => "_regex",
C::IRegex => "_iregex",
}
Expand All @@ -45,6 +48,7 @@ impl ComparisonFunction {
C::GreaterThan => "$gt",
C::GreaterThanOrEqual => "$gte",
C::Equal => "$eq",
C::In => "$in",
C::NotEqual => "$ne",
C::Regex => "$regex",
C::IRegex => "$regex",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/hasura/test_cases/connector/connector.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Connector
version: v1
version: v2
definition:
name: test_cases
subgraph: test_cases
Expand Down

0 comments on commit 9047490

Please sign in to comment.