Skip to content

Improve: Query Inputs: Allow "non-JSON" inputs to improve usability #312

Description

Currently, Filter, Project, and Sort` expect JSON as input:

This is valid:
{ "_id": 1 }

This is invalid:
{ _id: 1 }
_id": 1

== this is frustrating...

We should be smarter and have relaxed rules so that users can just enter queries with loose syntax and we're figuring it out.

Activity

  1. cveld commented on Dec 29, 2025

    @cveld

    Is there documentation available about how to use the query dialog? What are the operators available? $lt, etc. And it seems currently (version 0.6.3) impossible to paste text into the query textbox.

  2. tnaum-ms commented on Jan 2, 2026

    @tnaum-ms
    CollaboratorAuthor

    Carl in 't Veld (@cveld) Unfortunately, we don't have any documentation available yet. The current query dialog supports every operation that the find query supports; however, the input must be formatted as strict JSON. For example, the $lt operator needs to be entered like this:

    { "height": { "$lt": 5 } }
    

    We are planning to improve the query dialog significantly in the upcoming 0.8.0 release. We'll also make sure to include documentation explaining the feature set and any potential limitations.

    BTW: Thank you for spotting the potential "paste" issue, we'll review it and fix it ASAP.

  3. tnaum-ms commented on May 8, 2026

    @tnaum-ms
    CollaboratorAuthor

    Carl in 't Veld (@cveld) It took us a little while, but we’re now preparing version 0.8.0 for release 🙂

    Query support has improved quite a bit, and you should see it on the VS Code Marketplace early next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions