edgedb.Set as query's argument
- Dominant language
- Python
- Stars
- 415
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Hello. I could not find an any way to use edgedb.Set as query's parameter.
How it supposed to annotate set of int64 (`$inp`)?
```python
client.query('select 1 in $inp', inp=edgedb.Set({1,2,3}))
edgedb.errors.QueryError: missing a type cast before the parameter
```
```python
client.query('select 1 in $inp', inp=edgedb.Set({1,2,3}))
edgedb.errors.InvalidArgumentError: invalid input for query argument $imp: Set{1, 2, 3} (expected an int)
```
I'm not sure that it is a bug, because I'm also couldn't run this parameterized query through EdgeDB UI.
In the meantime, non-parameterized queries work as expected:
```select 1 in {1, 2, 3}```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.