Closed GenarLoya closed 3 months ago
The issue is in the error message:
missing a type cast before the parameter
EdgeQL requires that all parameters have a type cast, so that would be (assuming a string type here):
insert Movie {
title := <str>$title
}
Feel free to reopen if you run into any other issues or get any cryptic error messages trying to get this to work.
Thank you
Describe the bug I am using code generator, following instructions in this page Edgeql Codegen, and investigating how it works go:generate, I have a little idea.
My question is, the code generator can receive querys with embed parameters? By example:
using this, receive this error:
Reproduction I use this proyect structure
gen.go have this code, for use as generate trigger:
for generate code i run
go generate
oredgeql-go
Expected behavior Use embed parameters in edgeql files for generate functions with all go static types features
Versions:
edgedb-go
version: 0.17.1 (latest)