Skip to content

fix: serialize groups with only negated conditions as a valid query - #90

Merged
ytkimirti merged 10 commits into
DX-3147-query-invalidfrom
DX-3147-qb-not
Nov 24, 2026
Merged

ytkimirti merged 10 commits into
DX-3147-query-invalidfrom
DX-3147-qb-not

Conversation

@ytkimirti

@ytkimirti ytkimirti commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Not on every condition of a group wrote $and: {}, which the server rejects; it now writes $and: [{}]. Negated conditions in an OR group were written as a $mustNot next to $or, which the server ANDs (a OR NOT b ran as a AND NOT b); each is now its own { $mustNot: ... } item inside the $or array.
The parser now reads $mustNot the way the server does (next to $or as AND, each key of a $mustNot object excluded on its own, inside $and/$or objects, double negation), so opening a query in the builder keeps its meaning.
Part of DX-3147

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
react-redis-browser Ready Ready Preview Nov 17, 2026 4:19pm UTC

Request Review

@linear-code

linear-code Bot commented Oct 15, 2026

Copy link
Copy Markdown

DX-3147

@ytkimirti
ytkimirti marked this pull request as ready for review October 22, 2026 11:33
@ytkimirti
ytkimirti added this pull request to stack #118 October 28, 2026 07:55
@ytkimirti
ytkimirti merged commit adeb527 into master Nov 24, 2026
5 checks passed
@ytkimirti
ytkimirti deleted the DX-3147-qb-not branch November 24, 2026 10:13

This branch was successfully deployed

1 active deployment
Preview — 63a9aa6a Deployed Nov 17, 2026 by vercel[bot]
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.

2 participants