Skip to content

Commit

Permalink
Create invasorasEmParquesNacionais.js
Browse files Browse the repository at this point in the history
Salvando nova agregação
  • Loading branch information
edalcin authored Mar 28, 2024
1 parent 4d33c03 commit de701a7
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions referencias/agregacoes/occurence/invasorasEmParquesNacionais.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
$match:
{
locality: /parque nacional/i,
},
},
{
$lookup: {
from: "invasoras",
localField: "canonicalName",
foreignField: "scientific_name",
as: "invasoras",
},
},
{
$match:
{
invasoras: {
$not: {
$size: 0,
},
},
},
},
{
$project:
{
family: 1,
canonicalName: 1,
datasetName: 1,
catalogNumber: 1,
stateProvince: 1,
locality: 1,
},
},
{
$sort:
{
family: 1,
canonicalname: 1,
},
},
]

0 comments on commit de701a7

Please sign in to comment.