Skip to content

Conversation

@yyyyaaa
Copy link
Contributor

@yyyyaaa yyyyaaa commented Jan 14, 2026

  1. Missing generic type parameters on execute() calls - The execute<TData, TVariables>() function was called without type parameters, causing TypeScript to infer unknown for return types.
  2. Missing table type imports in mutations - When a table field references another table type (e.g., schema?: Schema), the referenced type wasn't imported, causing "Cannot find name" errors.

Solution

  • Added createTypedCallExpression() helper to generate properly typed execute<Result, Variables>() calls
  • Updated mutation generators to track and import all table types used in scalar fields
  • Added list filter types (StringListFilter, IntListFilter, UUIDListFilter) to ORM generator

@yyyyaaa yyyyaaa requested a review from pyramation January 14, 2026 17:54
@yyyyaaa yyyyaaa changed the title fix(codegen): missing generic types for react query mode hooks (WIP) fix(codegen): missing generic types for react query mode hooks Jan 14, 2026
@yyyyaaa
Copy link
Contributor Author

yyyyaaa commented Jan 14, 2026

I'm discovering some more issues, don't merge yet plz

- Add missing list query pagination variables: last, before, after, condition
- Generate Condition interface with proper enum type imports
- Skip single query hook generation for composite key tables
- Prevent duplicate exports in barrel files with deduplication logic
- Update snapshots to reflect new pagination variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants