v0.4.0
Added
-
Ecto.Enum Support: Full support for
Ecto.Enumfields with automatic GraphQL enum type generation- New
gql_enums/2macro to generate enum type definitions from Ecto schemas - Automatic detection of
Ecto.Enumfields in schemas - Enum types use compact syntax:
enum(:user_status, values: [:active, :inactive, :pending]) - Enum type names follow convention:
{schema_name}_{field_name}(e.g.,:user_status) - Support for
:onlyand:exceptfiltering options - Object fields automatically reference generated enum types
- Works seamlessly with
non_nulloption for enum fields - Code generator templates automatically include
gql_enumscalls
- New
-
Backward Compatibility:
Generator.generate/3now supports both argument orders- New pipe-friendly order:
generate(file_path, graphql_type, bindings) - Old order still supported:
generate(graphql_type, file_path, bindings)(deprecated) - Deprecation warnings guide users to new syntax
- No breaking changes - existing code continues to work
- New pipe-friendly order: