Need to filter “title” and “description” from the documents. This is just at the first level, but i also need to solve it for the nested documents.
{
"_id" : "63dadc6753bfc516421c5958",
"properties" : {
"abc:id" : {
"title" : "Identifier",
"type" : "string",
"description" : "Identity of the consumer"
},
"abc:authenticatedState" : {
"description" : "The state this identity is authenticated",
"type" : "string",
"default" : "ambiguous",
"enum" : [
"ambiguous",
"authenticated",
"loggedOut"
]
},
"abc:primary" : {
"title" : "Primary",
"type" : "boolean",
"default" : false,
"description" : "description"
}
}
}
Output should not have “title” and “description” in its $project phase