I have the following structure (swagger file):
{
"swagger":"2.0",
...
"paths": {
"/pet": {
"post" : { ... }
"put" : { ... }
},
"/anotherpetstore": {
"post" : { ... }
"put" : { ... }
}
}
}
I now want to have something like {'paths': {'$regex':'pet'}} and find both paths.
Is that even possible in MongoDB?
I found some similar questions which never looked for the name of the object itself.
MongoDB Search nested Objects without knowing Key
How to find specific nested objects without knowing the parent key in mongodb