I have these two documents in the mongo:
/* 0 */
{
"_id" : ObjectId("54f395ef7a5a5ea37af77398"),
"HISTORICO" : [],
"MOTIVO" : "",
"RP_CANCELAMENTO" : "",
"DATA_CANCELAMENTO" : null,
"RP_FINALIZACAO" : "",
"DATA_FINALIZACAO" : null,
"STATUS_CHAMADO" : "aberto",
"SOLICITACAO" : "teste.",
"DATA_CHAMADO" : ISODate("2015-03-01T00:00:00.000Z"),
"RP_CHAMADO" : "cristineia evangelista",
"EMAIL_SOLICITANTE" : "",
"TEL_COMERCIAL_SOLICITANTE" : "",
"TEL_RESIDENCIAL_SOLICITANTE" : "(39)00390300_",
"SOLICITANTE" : "Luciana",
"TEL_COMERCIAL_PROPRIETARIO" : "null",
"DDD_PROPRIETARIO" : "38",
"PRIORIDADE" : "media",
"BAIRRO" : "CENTRO",
"CODIGO_IMOVEL" : "03806/2",
"CODIGO_CONTRATO" : "16161",
"__v" : 0
}
/* 1 */
{
"_id" : ObjectId("54f395d47a5a5ea37af77397"),
"RP_ABERTURA" : "guilherme ferreira",
"HISTORICO" : [
[
{
"DATA_HISTORICO" : "2015-03-01",
"DADOS_HISTORICO" : "opa",
"_id" : ObjectId("54f396de7a5a5ea37af77399")
}
],
[
{
"DATA_HISTORICO" : "2015-03-01",
"DADOS_HISTORICO" : "opa",
"_id" : ObjectId("54f397437a5a5ea37af7739a")
}
],
[
{
"DATA_HISTORICO" : "2015-03-01",
"DADOS_HISTORICO" : "teste",
"_id" : ObjectId("54f39759c8d6e8e17ca7822c")
}
],
[
{
"DATA_HISTORICO" : "2015-03-01",
"DADOS_HISTORICO" : "teste",
"_id" : ObjectId("54f397d1c8d6e8e17ca7822d")
}
]
],
"MOTIVO" : "",
"RP_CANCELAMENTO" : "",
"DATA_CANCELAMENTO" : null,
"RP_FINALIZACAO" : "",
"DATA_FINALIZACAO" : null,
"STATUS_CHAMADO" : "aberto",
"SOLICITACAO" : "teste de chaad.",
"DATA_CHAMADO" : ISODate("2015-03-01T00:00:00.000Z"),
"RP_CHAMADO" : "erika ramires",
"EMAIL_SOLICITANTE" : "",
"SOLICITANTE" : "Luciana",
"DDD_PROPRIETARIO" : "38",
"NOME_PROPRIETARIO" : "PAULINA FRANCELINA DOS SANTOS",
"PRIORIDADE" : "media",
"BAIRRO" : "VL GUILHERMINA",
"ENDERECO" : "R LEOBINO CAMARA 55",
"CODIGO_IMOVEL" : "5971",
"CODIGO_CONTRATO" : "14298",
"__v" : 0
}
How do I search for a specific history?