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

MikroORM smart conditions support #11

Open
l00k opened this issue Apr 5, 2021 · 0 comments
Open

MikroORM smart conditions support #11

l00k opened this issue Apr 5, 2021 · 0 comments

Comments

@l00k
Copy link

l00k commented Apr 5, 2021

I have added support to MikroORM smart query conditions in forked repo. So now such requests are possible:

{
  variables: {
    "filters": {
      "and": [
        { "id": { "lt": 3 } },
        { 
          "name": { 
            "like": "test", 
            "nin": [ "tester" ]
          } 
        }
      ]
    }
  }
}

One sad thing "$" character is not supported in GraphQL so I had to use plain "eq", "and", "in" not "$eq", "$and", "$in". This may limit somehow use but still I think it is convenient.

If you would like to somehow merge it - you are free to go ;)

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

No branches or pull requests

1 participant