Trait tsukuyomi_juniper::AppGraphQLExt [−][src]
pub trait AppGraphQLExt: Sealed { fn graphql<T>(&mut self, path: &str, executor: T) -> &mut Self
where
T: GraphQLExecutor + Send + Sync + 'static,
T::Future: Send + 'static; fn graphiql(&mut self, path: &str, url: &str) -> &mut Self; }
A set of extensions for registration of GraphQL endpoints into App
.
Required Methods
fn graphql<T>(&mut self, path: &str, executor: T) -> &mut Self where
T: GraphQLExecutor + Send + Sync + 'static,
T::Future: Send + 'static,
T: GraphQLExecutor + Send + Sync + 'static,
T::Future: Send + 'static,
Registers a set of GraphQL handlers mounted to the provided path.
The following endpoints will be registered:
GET <path>
POST <path>
fn graphiql(&mut self, path: &str, url: &str) -> &mut Self
Registers a GraphiQL endpoint mounted to the provided path into this application.
Implementations on Foreign Types
impl AppGraphQLExt for AppBuilder
[src]
impl AppGraphQLExt for AppBuilder