Skip to content

Query works in Explore but returns empty when used as a variable #65

@mirawara

Description

@mirawara

Hi,

I’m experiencing an issue where a query works correctly in Explore, but when I try to use the same query as a variable, it returns empty results.

Here’s the query:

[ { "$group": { "_id": "$stabilimento" } }, { "$project": { "_id": 0, "value": "$_id" } }, { "$sort": { "value": 1 } } ]

  • In Explore, it returns the expected list of values.
  • In Variables, it shows nothing.

I was expecting the variable to populate with the same results as Explore.

Is this a bug or am I missing something in how queries should be structured for variables?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions