I'm using a MongoDB instance as my database backend but am getting an error when trying to search for a specific object
I've tested my query in Compass and it is running fine - hopefully someone else has run into this problem!
In compass if I use find or match on ObjectId I return a single document that matches the chosen id - the format is as follows: find {_id: ObjectId('distinct_id')}
However, when I put this into retool i get the following errors: The value has to be of type 'object | void', you provided a value of type 'string'
message:"The value given - { _id:ObjectId("6234bc60a1aaac0045d2c7c5") } must be valid JSON."
Hey @victoria - it didn't unfortunately, I instead had my dev team create an api to fetch specific details based on the company_id inputted. So same outcome different solution!
**note: make sure to avoid triple (or more) curly braces. Keep the double curlies separate from all other curly braces! Having something like this will confuse Retool and it won't often render correctly: