How add comments in the redash query

Hi All,

I am connection to Mongodb through the redash and creating the aggregation pipeline. Will I be able to add comments in the pipeline?

Vijay K

JSON syntax doesn’t support comments AFAIK. But you could probably do this by inserting semantically meaningless keys into your query. Like so:

  "collection": "this_collection",
  "_comment": "This collection contains such and such..."

The _comment key means nothing to mongo so it’s ignored on execution.

Thanks @k4s1m, this is helpful. Much appreciated