Trait tsukuyomi_juniper::Schema
source · pub trait Schema<S = DefaultScalarValue>where
S: ScalarValue,
for<'a> &'a S: ScalarRefValue<'a>,{
type Query: GraphQLType<S, Context = Self::Context, TypeInfo = Self::QueryInfo>;
type QueryInfo;
type Mutation: GraphQLType<S, Context = Self::Context, TypeInfo = Self::MutationInfo>;
type MutationInfo;
type Context;
fn as_root_node(&self) -> &RootNode<'static, Self::Query, Self::Mutation, S>;
}
Expand description
A marker trait representing a root node of GraphQL schema.