- Remove
QueryMeta— the entireQueryMeta/to_options()mechanism has been replaced by DataLoader-based relationship resolution. User code no longer needsquery_metaparameters orstmt.options()calls.
- DataLoader relationship resolution — relationships are now loaded level-by-level via batched DataLoaders (using
aiodataloader), eliminating N+1 queries without any user code - Pagination for list relationships — one-to-many and many-to-many relationships support
limit/offsetpagination withhas_moreandtotal_count, powered byROW_NUMBER()window functions enable_paginationflag onGraphQLHandler— whenTrue, list relationships exposeEntityResulttypes withitems+paginationfields in the GraphQL schemasession_factoryparameter onGraphQLHandler— required for DataLoader queries; pass your async session factory
GraphQLHandleracceptssession_factoryandenable_paginationparameters- SDL generator excludes FK fields from entity types and generates
Pagination/EntityResulttypes when pagination is enabled - Introspection generator mirrors SDL behavior: FK field filtering, pagination type awareness,
limit/offsetargs on list relationship fields @query/@mutationmethods no longer receivequery_meta— relationships are resolved by the framework after the root method returns- Add
aiodataloaderdependency - Remove
types.py(QueryMeta,FieldSelection,RelationshipSelection)
- Remove
from sqlmodel_graphql import QueryMeta - Remove
query_meta: QueryMeta | None = Nonefrom all@query/@mutationmethod signatures - Remove
if query_meta: stmt = stmt.options(*query_meta.to_options(cls))blocks - Add
sa_relationship_kwargs={"order_by": "Entity.column"}to list relationships for pagination support - Pass
session_factory=async_sessiontoGraphQLHandler
- Add
AutoQueryConfigfor auto-generatingby_idandby_filterqueries for SQLModel entities by_id: find a single entity by primary keyby_filter: filter entities by field values with auto-generatedFilterInputtype- Pass
auto_query_configtoGraphQLHandlerto enable; handler discovers all entity subclasses automatically - Update README.md with Auto-Generated Standard Queries documentation
- migrate from mcp to fastmcp
- Update README.md to emphasize rapid development of minimum viable systems
- Add 30-Second Quick Start section for quick onboarding
- Embed GraphiQL HTML template into the library
- Add
get_graphiql_html()method toGraphQLHandlerwith configurableendpointparameter
- add
allow_mutationoption tocreate_mcp_serverto enable mutation support in the generated GraphQL server. This allows clients to perform create, update, and delete operations on the data models defined in the SQLModel schema.