Closed windowsdeveloperwannabe closed 1 year ago
You have to wrap your json data into edgedb_protocol::model::Json::new_unchecked(x)
(sorry for having only unsafe API for now, we have to figure out safe API here).
Otherwise, client tries to send the value as a string. You can also do <array<str>><json><str>$0
.
Tried to insert an array of things into edgedb in the simplest way I could think of (so JSON). Client returns error
but I'm not sure what that means. Schema and code is:
In the REPL the query works fine with input
["tag1", "tag2", "tag3"]
and returns