Trait juniper_graphql_ws::Schema[][src]

pub trait Schema: Unpin + Clone + Send + Sync + 'static {
    type Context: Unpin + Send + Sync;
    type ScalarValue: ScalarValue + Send + Sync;
    type QueryTypeInfo: Send + Sync;
    type Query: GraphQLTypeAsync<Self::ScalarValue, Context = Self::Context, TypeInfo = Self::QueryTypeInfo> + Send;
    type MutationTypeInfo: Send + Sync;
    type Mutation: GraphQLTypeAsync<Self::ScalarValue, Context = Self::Context, TypeInfo = Self::MutationTypeInfo> + Send;
    type SubscriptionTypeInfo: Send + Sync;
    type Subscription: GraphQLSubscriptionType<Self::ScalarValue, Context = Self::Context, TypeInfo = Self::SubscriptionTypeInfo> + Send;
    fn root_node(
        &self
    ) -> &RootNode<'static, Self::Query, Self::Mutation, Self::Subscription, Self::ScalarValue>; }
Expand description

Schema defines the requirements for schemas that can be used for operations. Typically this is just an Arc<RootNode<...>> and you should not have to implement it yourself.

Associated Types

The context type.

The scalar value type.

The query type info.

The query type.

The mutation type info.

The mutation type.

The subscription type info.

The subscription type.

Required methods

Returns the root node for the schema.

Implementations on Foreign Types

Implementors