Skip to content
pubscout

angel3_graphql

10.0.0, released 3 weeks ago by dukefirehawk.com

Serve GraphQL APIs over HTTP and WebSockets using the Angel3 framework.

$ flutter pub add angel3_graphql
Source repository

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.

Works with

Packages commonly used together with angel3_graphql: ones it builds on, ones built on it, and its own family.