I have been trying to create a custom find in MongoDB with optional parameters. To clarify the problem , i have a mongodb document with this structure for example: