I get dynamic query params in my REST api which contains keys starting with $ sign. for example $format and $cost.
I need to persist them into MongoDB.
When i checked for a solution in web, I come across a solution which says to convert my $ or dot(.) into equivalent unicode and save to database.
MongoDB documentation says that we can neither insert a field name starting with dollar($) nor field containing dot(.) in it.
Is there any other way to persist it into database? Because its a dynamic key and I don't have control over it.
Is there any inbuilt classes in Mongo Library which would internally convert my field into Mongo understandable format ?
Thanks for the answers.