rebing/graphql-laravel-select-fields
Laravel package for rebing/graphql-laravel that adds select-field support to GraphQL queries, letting resolvers fetch only the Eloquent columns and relationships requested by clients. Reduce over-fetching, simplify field selection, and improve query performance.
Consider it when:
Look elsewhere when:
For executives: This is an established, community-maintained GraphQL server for Laravel, now at a stable 1.0.0 release line for the current major version. It lets our existing PHP team expose a single, flexible API that serves web, mobile, and partner clients from one schema — instead of building and maintaining a separate endpoint for each client's data needs. The decision it unlocks is strategic (GraphQL-first API) rather than technical (which library), and the main ongoing cost is governance: schema versioning and query-cost controls. No new runtime or language is introduced, so operational and hiring impact is low.
For engineering: The 1.0.0 stable release signals API stability for the current major version — safe to adopt without expecting churn in the integration surface. It gives us Laravel-native schema definition, middleware, authorization and validation hooks, file uploads, pagination/Relay conventions, batching, and a built-in GraphQL IDE. What it deliberately does not give us: DataLoader-style batching, persisted queries, depth/complexity limiting, and subscription transport — those are ours to implement and should be scoped as follow-on work. Recommend we validate against our Laravel 10/11 and PHP 8.x matrix, and prove out N+1 behavior on our two heaviest query paths before committing to a public-facing endpoint.
How can I help you explore Laravel packages today?