Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Aggregate functions in Mongo-DB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vipul.v
Aggregate functions in Mongo-DB
Commits
31d566a6
Commit
31d566a6
authored
Mar 22, 2023
by
vipul.v
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aggregate functions
parent
8ce631bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
script/core/handlers/inventory.py
script/core/handlers/inventory.py
+7
-2
No files found.
script/core/handlers/inventory.py
View file @
31d566a6
...
...
@@ -33,14 +33,19 @@ class InventoryData:
"order_id"
:
order_id
,
},
},
{
"$addFields"
:
{
"customer_names"
:
{
"$toLower"
:
"$customer_name"
}
}
},
{
"$sort"
:
{
"customer_name"
:
-
1
,
"customer_name
s
"
:
-
1
,
},
},
{
"$limit"
:
3
"$limit"
:
5
},
{
"$project"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment