I have a post that works getting a json with the parameters and the columns to get from MongoDB, but when I\'m trying to do a LIKE using mongo syntax, it throws:
You didn't post valid JSON. All string values, including keys in objects, need to be quoted. You did not quote $regex
.
{"parameters":{"AddressLine1":{"$regex":"Rio"}},"columns":{"SalesOrderID":1,"TotalDue":1}}
If Flask can't decode the JSON data, it raises a 400 error because the request is invalid.