docs.surrealdb.com
docs.surrealdb.com copied to clipboard
Documentation: Clarify expected arguments for queries.
Description
Right now there's a large number of query types that accept queries only accept idents/literals, I've seen many users run into confusing parser errors/invalid queries due to this as it's not clearly noted anywhere.
Ideally these queries should at least support $variables, this way users don't have to open themselves to sql injections (by formatting their queries manually). In the interim it should at least be documented for beta.9 and maybe beta.10 (as it's still an issue on nightly).
Is there an existing issue for this?
- [X] I have searched the existing issues
Code of Conduct
- [X] I agree to follow this project's Code of Conduct