URL queries not working
Reported by Greg on October 13 2023:
I think we have a bug with the URL queries to mongodb, maybe this occurred in the upgrade without us identifying it testing (?)
In the Results page, you can make custom queries directly via URL. This is an example of one which should work, but doesn't seem to. We use this in scripts (for example) to query the database to pull in data already submitted for various reasons.
The intended link: https://app.surveystack.io/api/submissions?survey=6527075594b5350001df2c3a&match={"data.survey.miller.value":"b"}
What it ends up showing in the URL: https://app.surveystack.io/api/submissions?survey=6527075594b5350001df2c3a&match=%7B%22data.survey.miller.value%22%3A%22b%22%7D ?
I'm not sure if it's ok that it's converting non-letters in match to other stuff ? Maybe that's the issue I don't know.
It should result in a page showing raw JSON, an array of the items which match this value, but right now it shows nothing. I'm 99% sure I've used this frequently before and (I think... unless I'm making a dumb mistake here) it's not working now.
Any ideas?