@hexa-framework/transport-graphql
v1.0.0
Published
GraphQL transport layer for Hexa Framework (Apollo Server)
Maintainers
Readme
@hexa/transport-graphql
GraphQL transport layer for Hexa Framework using Apollo Server.
⚠️ This package is a placeholder - Full implementation coming in v2.0
Planned Features
- Apollo Server 4 integration
- Auto-generate schema from entities
- BaseResolver class
- Authentication context
- DataLoader support for N+1 prevention
Installation (Coming Soon)
npm install @hexa/transport-graphql @apollo/server graphqlPlanned Usage
import { GraphQLTransport, BaseResolver } from '@hexa/transport-graphql';
class UserResolver extends BaseResolver<User> {
async findAll({ page, limit }) {
return this.userService.findAll(page, limit);
}
async findById(id) {
return this.userService.findById(id);
}
}Contributing
We welcome contributions! If you'd like to help implement this package:
- Fork the repository
- Check the issues for
transport-graphqltasks - Submit a PR
Visit: https://github.com/lutfianrhdn/hexa-framework
