Docs.rs
  • async-graphql-1.12.14
    • async-graphql 1.12.14
    • Docs.rs crate page
    • MIT/Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • sunli829
    • Dependencies
      • Inflector ^0.11.4 normal
      • anyhow ^1.0.26 normal
      • async-graphql-derive ^1.12.14 normal
      • async-graphql-parser ^0.5.1 normal
      • async-stream ^0.2.1 normal
      • async-trait ^0.1.30 normal
      • base64 ^0.12.0 normal
      • bson ^0.14.1 normal
      • byteorder ^1.3.4 normal
      • bytes ^0.5.4 normal
      • chrono ^0.4.10 normal
      • chrono-tz ^0.5.1 normal
      • fnv ^1.0.6 normal
      • futures ^0.3.0 normal
      • http ^0.2.1 normal
      • httparse ^1.3.4 normal
      • indexmap ^1.3.2 normal
      • itertools ^0.9.0 normal
      • mime ^0.3.16 normal
      • multer ^1.0.3 normal
      • once_cell ^1.3.1 normal
      • parking_lot ^0.10.0 normal
      • regex ^1.3.5 normal
      • serde ^1.0.104 normal
      • serde_derive ^1.0.104 normal
      • serde_json ^1.0.48 normal
      • slab ^0.4.2 normal
      • tempfile ^3.1.0 normal
      • thiserror ^1.0.11 normal
      • tracing ^0.1.13 normal
      • url ^2.1.1 normal
      • uuid ^0.8.1 normal
      • async-std ^1.5.0 dev
      • serde ^1.0.104 dev
      • serde_derive ^1.0.104 dev
    • Versions
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
☰
logo

Crate async_graphql

See all async_graphql's items

  • Modules
  • Structs
  • Enums
  • Traits
  • Type Definitions

Crates

  • async_graphql
Change settings

[−][src]Crate async_graphql

[−] Expand description

The GraphQL server library implemented by rust

Crates.io version Download docs.rs docs

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

  • GraphQL
  • GraphQL Multipart Request
  • GraphQL Cursor Connections Specification
  • GraphQL over WebSocket Protocol
  • Apollo Tracing
  • Apollo Federation

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 SubscriptionConnection

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

Results for md

In Names
(74)
In Parameters
(0)
In Return Types
(0)
async_graphql::IDID scalar 
async_graphql::FieldError::0 
async_graphql::Any::0 
async_graphql::Json::0 
async_graphql::http::GQLResponse::0 
async_graphql::http::GQLError::0 
async_graphql::FieldError::1 
async_graphql::Positioned::eq 
async_graphql::Value::eq 
async_graphql::Pos::eq 
async_graphql::QueryError::eq 
async_graphql::Error::eq 
async_graphql::Any::eq 
async_graphql::ID::eq 
async_graphql::Json::eq 
async_graphql::Cursor::eq 
async_graphql::CacheControl::eq 
async_graphql::http::GQLRequest::eq 
async_graphql::Pos::ge 
async_graphql::ID::ge 
async_graphql::Cursor::ge 
async_graphql::Pos::gt 
async_graphql::ID::gt 
async_graphql::Cursor::gt 
async_graphql::ParseRequestError::Io 
async_graphql::Pos::le 
async_graphql::ID::le 
async_graphql::Cursor::le 
async_graphql::Pos::lt 
async_graphql::ID::lt 
async_graphql::Cursor::lt 
async_graphql::Pos::ne 
async_graphql::QueryError::ne 
async_graphql::Error::ne 
async_graphql::Any::ne 
async_graphql::ID::ne 
async_graphql::Json::ne 
async_graphql::Cursor::ne 
async_graphql::CacheControl::ne 
async_graphql::http::GQLRequest::ne 
async_graphql::validators::OrInvalidator for `InputValueValidator::or` 
async_graphql::validators::InputValueValidatorExt::orMerge two validators, and return None when either… 
async_graphql::QueryError::InvalidEnumValue::tyEnum type name 
async_graphql::SubscriptionStreams::add 
async_graphql::guard::AndGuard for `GuardExt::and` 
async_graphql::validators::AndInvalidator for `InputValueValidatorExt::and` 
async_graphql::guard::GuardExt::andMerge the two guards. 
async_graphql::validators::InputValueValidatorExt::andMerge the two validators and return None only if both… 
async_graphql::Pos::cmp 
async_graphql::Positioned::cmp 
async_graphql::ID::cmp 
async_graphql::Cursor::cmp 
async_graphql::Positioned::fmt 
async_graphql::Value::fmt 
async_graphql::Pos::fmt 
async_graphql::Variables::fmt 
async_graphql::InputValueError::fmt 
async_graphql::FieldError::fmt 
async_graphql::QueryError::fmt 
async_graphql::ParseRequestError::fmt 
async_graphql::Error::fmt 
async_graphql::QueryResponse::fmt 
async_graphql::Any::fmt 
async_graphql::ID::fmt 
async_graphql::Json::fmt 
async_graphql::Cursor::fmt 
async_graphql::ValidationMode::fmt 
async_graphql::CacheControl::fmt 
async_graphql::QueryPathNode::fmt 
async_graphql::http::GQLRequest::fmt 
async_graphql::validators::MACMAC address validator 
async_graphql::Connection::mapConvert node type. 
async_graphql::validators::IntRange::maxMaximum value, including this value. 
async_graphql::validators::IntRange::minMinimum value, including this value. 
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.

Keyboard Shortcuts

?
Show this help dialog
S
Focus the search field
↑
Move up in search results
↓
Move down in search results
↹
Switch tab
⏎
Go to active search result
+
Expand all sections
-
Collapse all sections

Search Tricks

Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given type.

Accepted types are: fn, mod, struct, enum, trait, type, macro, and const.

Search functions by type signature (e.g., vec -> usize or * -> vec)

Search multiple things at once by splitting your query with comma (e.g., str,u8 or String,struct:Vec,test)

You can look for items with an exact name by putting double quotes around your request: "string"

Look for items inside another one by searching for a path: vec::Vec