This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Support negation #7
Labels
Comments
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 15, 2018
refs TryGhost#7 - `tags.slug:-animal`
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 15, 2018
refs TryGhost#7 - `tags.slug:-animal`
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 16, 2018
refs TryGhost#5, refs TryGhost#7 - (tags.slug = animal and sort_order = 0) OR visibility:internal (group) - tags.slug = animal OR sort_order = 0 OR visibility:internal - (tags.slug is animal and sort_order is 0) and tags.visibility=public (group) - tags.slug is animal and sort_order is 0 and tags.visibility=public
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 16, 2018
refs TryGhost#5, refs TryGhost#7 - (tags.slug = animal and sort_order = 0) OR visibility:internal (group) - tags.slug = animal OR sort_order = 0 OR visibility:internal - (tags.slug is animal and sort_order is 0) and tags.visibility=public (group) - tags.slug is animal and sort_order is 0 and tags.visibility=public
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 16, 2018
refs TryGhost#7 - `tags.slug:-animal`
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 16, 2018
refs TryGhost#5, refs TryGhost#7 - (tags.slug = animal and sort_order = 0) OR visibility:internal (group) - tags.slug = animal OR sort_order = 0 OR visibility:internal - (tags.slug is animal and sort_order is 0) and tags.visibility=public (group) - tags.slug is animal and sort_order is 0 and tags.visibility=public
kirrg001
added a commit
to kirrg001/mongo-knex
that referenced
this issue
Nov 16, 2018
refs TryGhost#5, refs TryGhost#7 - (tags.slug = animal and sort_order = 0) OR visibility:internal (group) - tags.slug = animal OR sort_order = 0 OR visibility:internal - (tags.slug is animal and sort_order is 0) and tags.visibility=public (group) - tags.slug is animal and sort_order is 0 and tags.visibility=public
naz
added a commit
that referenced
this issue
Dec 4, 2018
…lations (#18) refs #5 refs #7 - Improved group comparison operator check - Improved negation handling in conjunctions that have conditions on the connecting table - Added test cases where one of the properties is negated - Added support for negation inside $and conjunction with joining table condition
We need more test coverage for |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
NQL should support negation.
There are various combinations where you can use negation.
e.g. You can pass a filter into NQL
filter=-slug:en
(same table negation)filter=-tag:en+-tag:de
(negation for relations)mongo-knex has to receive mongo JSON objects and interpret the object correctly.
Tasks
Add a test case and the assertion first and see if it passes.
The text was updated successfully, but these errors were encountered: