[−][src]Crate async_graphql
The GraphQL server library implemented by rust
Documentation
- Feature Comparison
- Book
- 中文文档
- Docs
- GitHub repository
- Cargo package
- Minimum supported Rust version: 1.42 or later
Features
- Fully support async/await
- Type safety
- Rustfmt friendly (Procedural Macro)
- Custom scalar
- Minimal overhead
- Easy integration (hyper, actix_web, tide ...)
- Upload files (Multipart request)
- Subscription (WebSocket transport)
- Custom extension
- Apollo Tracing extension
- Limit query complexity/depth
- Error Extensions
- Apollo Federation
Integrations
- Actix-web async-graphql-actix_web
- Warp async-graphql-warp
- Tide async-graphql-tide
License
Licensed under either of
- Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
References
Modules
extensions | Extensions for schema |
guard | Field guards |
http | A helper module that supports HTTP |
validators | Input value validators |
Structs
Any | Any scalar |
CacheControl | Cache control values |
Connection | Connection type |
ContextBase | Query context |
Cursor | Cursor scalar |
Data | Schema/Context data |
EmptyEdgeFields | Empty edge extension object |
EmptyMutation | Empty mutation |
EmptySubscription | Empty subscription |
FieldError | FieldError type |
ID | ID scalar |
IntoQueryBuilderOpts | IntoQueryBuilder options |
Json | A scalar that can represent any JSON value. |
Lookahead | A selection performed by a query |
PageInfo | Information about pagination in a connection |
Pos | Original position of element in source code |
Positioned | Represents the position of a AST node |
QueryBuilder | Query builder |
QueryPathNode | The query path node |
QueryResponse | Query response |
Schema | GraphQL schema |
SchemaBuilder | Schema builder |
SimpleBroker | A simple broker based on memory |
SubscriptionStream | |
SubscriptionStreams | Use to hold all subscription stream for the |
Upload | Uploaded file |
Variables | Variables of query |
WebSocketTransport | WebSocket transport |
Enums
Error | |
InputValueError | Input Value Error |
ParseRequestError | |
QueryError | Error for query |
QueryOperation | Connection query operation |
QueryPathSegment | The query path segment |
ValidationMode | Validation mode |
Value | Represents a GraphQL value |
Traits
DataSource | Data source of GraphQL Cursor Connections type |
ErrorExtensions | |
IntoQueryBuilder | |
ResultExt | |
ScalarType | Represents a GraphQL scalar |
SubscriptionTransport | Subscription transport |
Type | Represents a GraphQL type |
Type Definitions
Context | Context object for resolve field |
FieldResult | FieldResult type |
InputValueResult | InputValueResult type |
Result | Result type |
Attribute Macros
DataSource | Define a DataSource |
Enum | Define a GraphQL enum |
InputObject | Define a GraphQL input object |
Interface | Define a GraphQL interface |
Object | Define a GraphQL object |
Scalar | Define a Scalar |
SimpleObject | Define a GraphQL object |
Subscription | Define a GraphQL subscription |
Union | Define a GraphQL union |