We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I expect the following two queries to be equivalent, however, the second produces an error, am I doing something wrong?:
var id = 'local.net/s+VPmCWEf0GGA'; SwellRT.query({'root.id': id}, function(res){console.log(JSON.stringify(res))})
var id = 'local.net/s+VPmCWEf0GGA' SwellRT.query("{'root.id': " + id + "}", function(res){console.log(JSON.stringify(res))})
Last form produces the following error GET http://swellrt:9898/swell/model?q=%7B%27root.id%27%3A+local.net%2Fs%2BVPmCWEf0GGA%7D 500 (Server Error)
maybe the problem is related with escaped characters in the URL?
The text was updated successfully, but these errors were encountered:
Not an issue. Add '' around the id var in the second expression.
Sorry, something went wrong.
Thanks! the correct expression is:
("{'root.id': '" + id + "'}"
No branches or pull requests
I expect the following two queries to be equivalent, however, the second produces an error, am I doing something wrong?:
Last form produces the following error GET http://swellrt:9898/swell/model?q=%7B%27root.id%27%3A+local.net%2Fs%2BVPmCWEf0GGA%7D 500 (Server Error)
maybe the problem is related with escaped characters in the URL?
The text was updated successfully, but these errors were encountered: