angel3_graphql
10.0.0, released 3 weeks ago by dukefirehawk.com
Serve GraphQL APIs over HTTP and WebSockets using the Angel3 framework.
What it does
Provides request handlers to serve GraphQL schemas, GraphiQL interfaces, file uploads, and WebSockets subscriptions within an Angel3 backend application. It supports schema resolvers integrated with Angel services.
AI-written summary of version 10.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a backend application using the Angel3 framework and want to expose a GraphQL API.
- You need to handle GraphQL queries, mutations, subscriptions, and file uploads over HTTP and WebSockets.
Skip it when
- you are not using the Angel3 backend framework.
- You are building a client-side Flutter application rather than a server.
Strengths
- Integrates seamlessly with Angel3 services for quick CRUD operations.
- Supports modern GraphQL WebSocket subprotocols (graphql-transport-ws) and file uploads.
- Includes built-in GraphiQL support for API exploration.
Weaknesses
- Tied strictly to the Angel3 framework ecosystem.
- Requires build_runner and code generation for model types.
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 12
Requires adding angel3_graphql and its dependencies to pubspec.yaml, and running build_runner to generate types from models.
var app = Angel();
var http = AngelHttp(app);
var todoService = app.use('api/todos', MapService());
var schema = graphQLSchema(queryType: queryType);
app.all('/graphql', graphQLHttp(GraphQL(schema)));
app.get('/graphiql', graphiQL());Alternatives
Packages that do the same job and could replace angel3_graphql.
- nhost_graphql_adapter
Adapter that connects the graphql package to an Nhost.io GraphQL backend
77Compare - requests_inspector
Log, inspect, and share REST and GraphQL requests by shaking your phone.
72Compare
Works with
Packages commonly used together with angel3_graphql: ones it builds on, ones built on it, and its own family.
- http_parserangel3_graphql depends on itA platform-independent package for parsing and serializing HTTP formats.
- web_socket_channelangel3_graphql depends on itCross‑platform WebSocket channel wrapper for Dart
- stream_channelangel3_graphql depends on itAn abstraction for two-way communication channels based on the Dart Stream class.
- angel3_frameworkangel3_graphql depends on itA high‑powered Dart HTTP server framework with DI, routing and extensible plugins.
- angel3_websocketangel3_graphql depends on itWebSockets support and event broadcasting for the Angel3 framework.
- graphql_server2angel3_graphql depends on itBase package for executing GraphQL queries, mutations, and subscriptions against a schema.
- angel3_ormSame familyRuntime support and query builder for Angel3 ORM.
- angel3_orm_mysqlSame familyMySQL and MariaDB support for Angel3 ORM, including querying and transactions.