Skip to content

Feature Request: allow querying multiple db's #356

Open
@glucaci

Description

@glucaci

Feature Request

I would like to query multiple db's in same request.

Context

Give the following playground:

const email = "[email protected]";

use('users');
const user = db.users.find({email: email});

use('orders');
const orders = db.orders.find({userId: user._id});

I would like to see in the result tab the documents from both queries.

[
   {
      "_id": "..."
      "email": "[email protected]"
   },
   {
      "_id": "...",
      "userId": "...",
      "orderDetails": "..."
   }
]

or splited by database

users
[
   {
      "_id": "..."
      "email": "[email protected]"
   }
]
orders
[
   {
      "_id": "...",
      "userId": "...",
      "orderDetails": "..."
   }
]

With the current implementation when executing the above playground it will show only the result from the last query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions