Skip to content

Instantly share code, notes, and snippets.

@alobato
Created June 8, 2022 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alobato/2d6c39bda7c3361454b27e34c87ce3bd to your computer and use it in GitHub Desktop.
Save alobato/2d6c39bda7c3361454b27e34c87ce3bd to your computer and use it in GitHub Desktop.
352206041550260006745506400012822013044218431,aasdsad, asdsad, asda, ACP559, 94.6
352206041550260006745506400012822013044218431,aasdsad, asdsad, asda, ART9614, 131.05
find - Mongo
lines = []
for (const nfe of nfes) {
// const dets = findAll det (nfe._id)
for (const det of dets) {
lines.push({
id: nfe._id,
s,
det
})
}
}
https://www.mongodb.com/docs/upcoming/reference/operator/aggregation/lookup/#pipe._S_lookup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment