Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support _find query #186

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

Conversation

SachsKaylee
Copy link

Closes #185
Adds support for _find using mango queries https://docs.couchdb.org/en/2.3.1/api/database/find.html

Usage:

couchbeam:find_docs(Db, {[
    {<<"$or">>, [
      {[{<<"salutation">>, {[{<<"$regex">>, <<"Test">>}]}}]},
      {[{<<"forename">>, {[{<<"$regex">>, <<"Test">>}]}}]},
      {[{<<"surname">>, {[{<<"$regex">>, <<"Test">>}]}}]}
    ]},
    {<<"company">>, {[{<<"$eq">>, <<"08f878d42296b9f9115848ce01012847">>}]}},
    {<<"type">>, {[{<<"$eq">>, <<"contact">>}]}}
  ]}, [{limit, 10}, {skip, 5}]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mango query _find support
3 participants