Rather than developing a transformation pipeline in the application layer, I'd like to post standard JSON to SurrealDB and define functions acting like old-school stored procedures to store update, read and generally speaking interact with the data. This would abstract the SurrealDB-specific concerns from the application layer.
However, I cannot find in the documentation how one may use the HTTP API to call a user-defined function and pass it a Json object. Can someone help by providing a sample of what such an HTTP request should look like?
Here is the answer from the SurrealDB Team:
And apparently, named JSON parameters can be passed to the function by encoding them as URL parameters: