thecodingmachine/tdbm-graphql-bundle
A Symfony bundle that integrates the TDBM ORM with GraphQL, helping you expose TDBM entities and repositories as a GraphQL API with less boilerplate. It brings TDBM persistence and GraphQL schema generation together for PHP applications.
composer require thecodingmachine/tdbm-graphql-bundle:^6.0. This release aligns the bundle with GraphQLite 6, TDBM 6, and Symfony 6, so confirm your app already runs Symfony 6.x and PHP 8.1+ before upgrading.config/bundles.php (Flex may do this automatically) and make sure the GraphQLite bundle is registered too — this package sits on top of it and won't provide a schema on its own.Article), annotate it with GraphQLite's #[Type] / #[Field] attributes, expose a simple query returning it, and confirm it appears in your GraphiQL endpoint. Once that round-trip works, layer on the bundle's auto-generated list/pagination queries.TypeMapper per class. Reserve custom resolvers for fields that need joins, aggregation, or non-DAO logic.#[Query], #[Mutation], #[Type], #[Field] on your controllers/beans. This is the pattern your whole codebase should follow after the v6 upgrade.find with limits. Add explicit filter input types rather than passing raw JSON.getXxx batch loading (or GraphQLite's buffer/loader patterns) so a list of 50 articles doesn't trigger 50 author queries.#[Security] / #[Right] attributes. Mutations that write via TDBM should also be validated before save(), not after.@Query / @Type docblocks in your app will silently stop being picked up. Grep your codebase for @Query, @Type, @Field, @Mutation before upgrading.php bin/console cache:clear — otherwise you'll debug a schema that no longer matches your code.How can I help you explore Laravel packages today?