Skip to content

Commit

Permalink
Adds in and like operators (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
javierg authored Aug 21, 2024
1 parent 1f8ac41 commit 403b441
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/couchx/prepare_query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ defmodule Couchx.PrepareQuery do
==: "$eq",
or: "$or",
and: "$and",
in: "$in"
in: "$in",
like: "$regex"
]

@operators [
Expand All @@ -12,7 +13,8 @@ defmodule Couchx.PrepareQuery do
<: "$lt",
>=: "$gte",
<=: "$lte",
!=: "$ne"
!=: "$ne",
in: "$in"
]

@operator_keys Keyword.keys(@operators)
Expand Down

0 comments on commit 403b441

Please sign in to comment.