$near
operator do?
location | ||
id | city | state |
23 | Abilene | TX |
24 | Anson | TX |
25 | Baird | TX |
26 | Clyde | TX |
27 | Buffalo Gap | TX |
49 | Hobbs | NM |
... | ... | ... |
rainfall | ||
id | year | amount |
23 | 2006 | 26.4 |
23 | 2007 | 43.2 |
23 | 2008 | 33.0 |
24 | 2006 | 31.0 |
24 | 2007 | null |
24 | 2008 | 29.0 |
25 | 2007 | null |
25 | 2008 | null |
... | ... | ... |
_id
field is not displayed.
// artist collection (partial) { "_id" : ObjectId("5e9b5fbe97a3852304b54f48"), "name" : "Dog Man", "hometown" : "Coyote, Wyoming" } { "_id" : ObjectId("5e9b5fbe97a3852304b54f49"), "name" : "The Computering Whiners", "hometown" : "Seattle, Washington" } // etc.
// album collection (partial) { "_id" : ObjectId("5e9b5fbf97a3852304b54f4b"), "artist_id" : ObjectId("5e9b5fbe97a3852304b54f48"), "title" : "Howling Knights", "year" : 2003, "genre" : [ "Jazz", "Soul" ] } { "_id" : ObjectId("5e9b5fbf97a3852304b54f4c"), "artist_id" : ObjectId("5e9b5fbe97a3852304b54f48"), "title" : "Woof, Woof to You Too!", "year" : 2004, "genre" : [ "Pop" ] } // etc.
_id
and artist_id
fields, show only albums that have "Pop" in the list of generes, sort with most recent albums listed first.