Skip to content

Dastari/graphql-orm-macros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-orm-macros

Procedural macros for generating GraphQL entity types, relation resolvers, CRUD operations, and schema roots for an async-graphql + ORM-style backend.

Status

This crate now targets the graphql-orm runtime crate directly instead of expecting application-local host modules.

Use it with:

  • graphql-orm
  • graphql-orm-macros

Included Macros

  • mutation_result!
  • #[derive(GraphQLEntity)]
  • #[derive(GraphQLRelations)]
  • #[derive(GraphQLOperations)]
  • schema_roots!

Runtime Status

The paired graphql-orm runtime now provides:

  • runtime metadata types generated from derives
  • backend-aware query rendering for SQLite and PostgreSQL
  • schema models, diffing, migration planning, migration-file rendering, and live schema introspection
  • live integration coverage for generated CRUD, nested relations, subscriptions, and N+1-preload behavior

The macro crate remains responsible for code generation. Runtime execution, schema inspection, and migration behavior live in graphql-orm.

Development

cargo check

Planned Feature Flags

  • sqlite
  • postgres
  • mysql
  • mssql

Exactly one backend flag must be enabled at a time. The selected flag now controls the generated runtime pool and row aliases:

  • sqlite -> graphql_orm::DbPool, graphql_orm::DbRow
  • postgres -> graphql_orm::DbPool, graphql_orm::DbRow
  • mysql -> planned
  • mssql -> planned

SQLite and PostgreSQL are covered by live integration tests through graphql-orm. MySQL and SQL Server remain planned.

License

License has not been selected yet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages