[][src]Enum juniper::http::GraphQLBatchRequest

pub enum GraphQLBatchRequest<S = DefaultScalarValue> where
    S: ScalarValue
{ Single(GraphQLRequest<S>), Batch(Vec<GraphQLRequest<S>>), }

Simple wrapper around GraphQLRequest to allow the handling of Batch requests.

Variants

Single(GraphQLRequest<S>)

A single operation request.

Batch(Vec<GraphQLRequest<S>>)

A batch operation request.

Empty batch is considered as invalid value, so cannot be deserialized.

Implementations

impl<S> GraphQLBatchRequest<S> where
    S: ScalarValue
[src]

pub fn execute_sync<'a, QueryT, MutationT, SubscriptionT>(
    &'a self,
    root_node: &'a RootNode<'_, QueryT, MutationT, SubscriptionT, S>,
    context: &QueryT::Context
) -> GraphQLBatchResponse<'a, S> where
    QueryT: GraphQLType<S>,
    MutationT: GraphQLType<S, Context = QueryT::Context>,
    SubscriptionT: GraphQLType<S, Context = QueryT::Context>, 
[src]

Execute a GraphQL batch request synchronously using the specified schema and context

This is a simple wrapper around the execute_sync function exposed in GraphQLRequest.

pub async fn execute<'a, QueryT, MutationT, SubscriptionT>(
    &'a self,
    root_node: &'a RootNode<'a, QueryT, MutationT, SubscriptionT, S>,
    context: &'a QueryT::Context
) -> GraphQLBatchResponse<'a, S> where
    QueryT: GraphQLTypeAsync<S>,
    QueryT::TypeInfo: Sync,
    QueryT::Context: Sync,
    MutationT: GraphQLTypeAsync<S, Context = QueryT::Context>,
    MutationT::TypeInfo: Sync,
    SubscriptionT: GraphQLSubscriptionType<S, Context = QueryT::Context>,
    SubscriptionT::TypeInfo: Sync,
    S: Send + Sync
[src]

Executes a GraphQL request using the specified schema and context

This is a simple wrapper around the execute function exposed in GraphQLRequest

pub fn operation_names(&self) -> Vec<Option<&str>>[src]

The operation names of the request.

Trait Implementations

impl<S: Debug> Debug for GraphQLBatchRequest<S> where
    S: ScalarValue
[src]

impl<'de, S> Deserialize<'de> for GraphQLBatchRequest<S> where
    S: ScalarValue,
    InputValue<S>: Deserialize<'de>, 
[src]

impl<S: PartialEq> PartialEq<GraphQLBatchRequest<S>> for GraphQLBatchRequest<S> where
    S: ScalarValue
[src]

impl<S> StructuralPartialEq for GraphQLBatchRequest<S> where
    S: ScalarValue
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for GraphQLBatchRequest<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for GraphQLBatchRequest<S> where
    S: Send
[src]

impl<S> Sync for GraphQLBatchRequest<S> where
    S: Sync
[src]

impl<S> Unpin for GraphQLBatchRequest<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for GraphQLBatchRequest<S> where
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,