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

Is $unwind supported? #134

Open
adamxyzxyz opened this issue Oct 13, 2022 · 0 comments
Open

Is $unwind supported? #134

adamxyzxyz opened this issue Oct 13, 2022 · 0 comments

Comments

@adamxyzxyz
Copy link

Hello,

I am running a query on grafana cloud to get data inside a nested document, the query is below

db.data.aggregate(
  [
    { 
    $limit: 1 
    },
    {
      $unwind: "$data_field"
    },
    {"$project": {
      "1": "$data_field.1",
      "2": "$data_fields.2",
      "3": "$data_field.3",
      "4": "$data_field.4",
      "5": "$data_field.5"
      }
    },
    {$sort: {datetime: -1}}
  ]
)

As usual, this query doesn't work with this plugin. Is the unwind feature supported?

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