-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The following search
db.getCollection('searches').find({"_id": ObjectId("5d13fa822b27ff07fe91f28d")})
returns the json below. The names and services objects are double nested in an array.
{
"_id" : ObjectId("5d13fa822b27ff07fe91f28d"),
"names" : [
[
{
"value" : "CRYSTAL WYMENGA",
"label" : "CRYSTAL WYMENGA",
"First" : "CRYSTAL",
"Last" : "WYMENGA"
}
],
[
{
"value" : "LAURIE WISEMAN",
"label" : "LAURIE WISEMAN",
"First" : "LAURIE",
"Last" : "WISEMAN"
}
],
[
{
"value" : "NORMA WILLIAMS",
"label" : "NORMA WILLIAMS",
"First" : "NORMA",
"Last" : "WILLIAMS"
}
]
],
"services" : [
[
{
"value" : "ACS-MAIN",
"label" : "ACS-MAIN"
}
],
[
{
"value" : "ABA-ABA",
"label" : "ABA-ABA"
}
],
[
{
"value" : "BLV-MAIN",
"label" : "BLV-MAIN"
}
]
],
"location" : {
"value" : "Any",
"label" : "Any"
},
"time" : {
"value" : 30,
"label" : "30 mins"
},
"numSessions" : {
"value" : 1,
"label" : "1"
},
"timeOfDay" : {
"value" : "anytime",
"label" : "Anytime"
},
"__v" : 0
}
The names field should be in the following format,
"names" : [
{
"value" : "CRYSTAL WYMENGA",
...
},
{
"value" : "LAURIE WISEMAN",
...
},
{
"value" : "NORMA WILLIAMS",
...
}
]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels