Skip to content

How to parse a MongoDB query using Siddhi #46

Open
@BuddhiWathsala

Description

@BuddhiWathsala

Description:
As far as I understand using the test cases provided here we can do all CRUD operations to the MongoDB using this Siddhi MongoDB extension. My question is how do I parse a complex query(like below) into a MongoDB table and get the output to Siddhi level for further process.

db.employees.aggregate( [
   {
      $graphLookup: {
         from: "employees",
         startWith: "$reportsTo",
         connectFromField: "reportsTo",
         connectToField: "name",
         as: "reportingHierarchy"
      }
   }
] )

Refer
https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/#examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions