async_graphql::types

Module connection

Source
Expand description

Types for Relay-compliant server

Structs§

Connection
Connection type
DefaultConnectionName
Name the connection type by default with the default format.
DefaultEdgeName
Name the edge type by default with the default format.
DisableNodesField
Disable (at compile time) nodes field in GQL output of Connection
Edge
An edge in a connection.
EmptyFields
Empty additional fields
EnableNodesField
Enable (at compile time) nodes field in GQL output of Connection
OpaqueCursor
A opaque cursor that encode/decode the value to base64
PageInfo
Information about pagination in a connection

Traits§

ConnectionNameType
Used to specify the connection name.
CursorType
Cursor type
EdgeNameType
Used to specify the edge name.
NodesFieldSwitcherSealed
Allow switch if Connection contains nodes field in GQL output

Functions§

query
Parses the parameters and executes the query.
query_with
Parses the parameters and executes the query and return a custom Connection type.