feat: Simplify proposals events and add warehouse events
This commit is contained in:
@@ -1,14 +1,28 @@
|
||||
// MongoDB Playground
|
||||
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
|
||||
|
||||
// The current database to use.
|
||||
use('enrutaviaporte');
|
||||
|
||||
// Create a new document in the collection.
|
||||
db.getCollection('notifications').insertOne({
|
||||
"owner" : ObjectId("65eeadb8ed616b897ca4c4cd"),
|
||||
"title":"Notification title",
|
||||
"description":"Notification description",
|
||||
"tag":"category",
|
||||
"deleted":false
|
||||
});
|
||||
/* global use, db */
|
||||
// MongoDB Playground
|
||||
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
|
||||
|
||||
// The current database to use.
|
||||
use('enrutaviaporte');
|
||||
|
||||
// Search for documents in the current collection.
|
||||
db.getCollection('loads')
|
||||
.find(
|
||||
{
|
||||
_id : ObjectId('66c151a1299e3cfe8fa4a1dc')
|
||||
},
|
||||
{
|
||||
/*
|
||||
* Projection
|
||||
* _id: 0, // exclude _id
|
||||
* fieldA: 1 // include field
|
||||
*/
|
||||
}
|
||||
)
|
||||
.sort({
|
||||
/*
|
||||
* fieldA: 1 // ascending
|
||||
* fieldB: -1 // descending
|
||||
*/
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user