Closed dodyg closed 1 year ago
I don't find any documentation on how to insert data safely using the client.
For now I just build the string directly. Is this safe or is there a better way?
await client.ExecuteAsync($$""" INSERT BlogPost { title := "{{input.Title}}", body := "{{input.Body}}", status := BlogPostStatus.Pending } """);
https://github.com/dodyg/practical-edgedb-net/blob/main/projects/simple-blog/Program.cs
Never mind. Found the explanation here https://github.com/edgedb/edgedb-net/tree/dev/examples/EdgeDB.Examples.ExampleTODOApi
I don't find any documentation on how to insert data safely using the client.
For now I just build the string directly. Is this safe or is there a better way?
https://github.com/dodyg/practical-edgedb-net/blob/main/projects/simple-blog/Program.cs