From d127943e16b52cf4a1ec8081034ed8b9c74aa0d5 Mon Sep 17 00:00:00 2001 From: Phelipe Ohlsen Date: Tue, 9 Mar 2021 10:40:31 -0300 Subject: [PATCH] summary/back to top feat --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cdfd3e9..fafcdd6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ - [Sumário](#sumário) - [Operadores](#operadores) - [Operadores Aggregation](#operadores-aggregation) + - [$match](#match) + - [$limit](#limit) + - [$group](#group) + - [$project](#project) + - [$unwind](#unwind) + - [$lookup](#lookup) - [$lookup (let/pipeline)](#lookup-letpipeline) - [$addFields](#addfields) - [Operadores Aritméticos](#operadores-aritméticos) @@ -27,7 +33,7 @@ **Template** -```javascript +``` db.collection.aggregate([ { $match: { } }, ]); @@ -43,13 +49,15 @@ db.workers.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/match/") +[Voltar para Sumário](#sumário) + --- ### $limit **Template** -```javascript +``` db.collection.aggregate([ { $limit: }, ]); @@ -66,13 +74,15 @@ db.products.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/limit/") +[Voltar para Sumário](#sumário) + --- ### $group **Template** -```javascript +``` db.collection.aggregate([ { $group: { @@ -100,13 +110,15 @@ db.products.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/group/") +[Voltar para Sumário](#sumário) + --- ### $project **Template** -```javascript +``` db.collection.aggregate([ { project: { @@ -135,13 +147,15 @@ db.products.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/project) +[Voltar para Sumário](#sumário) + --- ### $unwind **Template** -```javascript +``` db.collection.aggregate([ { $unwind: }, ]); @@ -157,13 +171,15 @@ db.streamings.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/) +[Voltar para Sumário](#sumário) + --- ### $lookup **Template** -```javascript +``` db.collection.aggregate([ { $lookup: { @@ -193,6 +209,8 @@ db.orders.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/) +[Voltar para Sumário](#sumário) + --- ### $lookup (let/pipeline) @@ -243,6 +261,8 @@ db.orders.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/) +[Voltar para Sumário](#sumário) + --- ### $addFields @@ -283,6 +303,8 @@ db.school.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/addFields/) +[Voltar para Sumário](#sumário) + ## Operadores Aritméticos ### $add @@ -318,6 +340,8 @@ db.products.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/add/) +[Voltar para Sumário](#sumário) + --- ### $subtract @@ -359,6 +383,8 @@ db.products.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/subtract/) +[Voltar para Sumário](#sumário) + --- ### $ceil @@ -394,6 +420,8 @@ db.movies.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/ceil/) +[Voltar para Sumário](#sumário) + --- ### $floor @@ -430,6 +458,8 @@ db.movies.aggregate([ [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/floor/) +[Voltar para Sumário](#sumário) + --- ### $abs @@ -463,6 +493,8 @@ db.operations.aggregate([ ``` [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/abs/) +[Voltar para Sumário](#sumário) + --- ### $multiply @@ -501,6 +533,8 @@ db.operations.aggregate([ ``` [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/multiply/) +[Voltar para Sumário](#sumário) + --- ### $divide @@ -535,4 +569,6 @@ db.employees.aggregate([ ``` [Documentação](https://docs.mongodb.com/manual/reference/operator/aggregation/divide/) +[Voltar para Sumário](#sumário) + ---