We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code The code causing the error.
e.greet(e.cast(e.Name, 'greg'));
Schema
module default { scalar type Name extending str {} function greet(name: Name) -> str using ( "Hello, " ++ name ++ "!" ); }
Generated EdgeQL
Exception thrown
Error or desired behavior
No function overload found for 'e.default.greet()' with args: Element: default::Name (One)
Versions (please complete the following information):
2.0
edgedb-js
0.20.10
@edgedb/generate
0.0.7
The text was updated successfully, but these errors were encountered:
The workaround is to accept a primative as the type param e.g. str and cast it to the desired type in the function
str
Sorry, something went wrong.
No branches or pull requests
Code
The code causing the error.
Schema
Generated EdgeQL
Exception thrown
Error or desired behavior
Versions (please complete the following information):
2.0
): 4.5+28216a1"2.0
): 4.1.0+03ae624edgedb-js
version (e.g.0.20.10
;): 1.4.1@edgedb/generate
version (e.g.0.0.7
;): 0.4.1The text was updated successfully, but these errors were encountered: