3 ms·
Probably Python won't get a typesafe query builder until it catches up with its typing to TypeScript. Right now in Python the generics are quite rudimentary, t
by 1st1 2y ago
Probably Python won't get a typesafe query builder until it catches up with its typing to TypeScript.
Right now in Python the generics are quite rudimentary, there's no equivalent to TypeScript's keyof or mapped types. We're using all of TS' advanced typing system features to make our query builder work.
Python will get a query builder (it's a priority for us now) soon, but it will not be a type safe one. BUT: Python, and all other languages that we support, can use codegen.
Just put your query in a `<name>.edgeql` file, and run a special command. Gel will generate a fully typed function that runs that query.
- aitchnyu 2y agoCan we add filters and subqueries to query, like we do with an orm?