I have a document in my collection.
"_id" : ObjectId("5755b94abcfc6666d6f5fe56"),
"NAME" : John Smith,
"PHONE" : "800-555-1000",
"DOC" : {
" TYPE" : "M",
" DATE" : "01/28/2016",
" AMOUNT" : 281593
},
"ADDRESS" : 123 Sesame Street
I am trying to find this record by passing in the keys and values:
db.acris.find("DOC" : {" TYPE" : "MTGE"," DATE" : "01/28/2003"," AMOUNT" : 281593})
However, I am getting the following error:
SyntaxError: Unexpected token :
How can I fix this query so that the code will work?