[−][src]Enum juniper::http::GraphQLBatchRequest
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]
S: ScalarValue,
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]
&'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>,
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]
&'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,
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]
S: ScalarValue,
impl<'de, S> Deserialize<'de> for GraphQLBatchRequest<S> where
S: ScalarValue,
InputValue<S>: Deserialize<'de>,
[src]
S: ScalarValue,
InputValue<S>: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<S: PartialEq> PartialEq<GraphQLBatchRequest<S>> for GraphQLBatchRequest<S> where
S: ScalarValue,
[src]
S: ScalarValue,
fn eq(&self, other: &GraphQLBatchRequest<S>) -> bool
[src]
fn ne(&self, other: &GraphQLBatchRequest<S>) -> bool
[src]
impl<S> StructuralPartialEq for GraphQLBatchRequest<S> where
S: ScalarValue,
[src]
S: ScalarValue,
Auto Trait Implementations
impl<S> RefUnwindSafe for GraphQLBatchRequest<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for GraphQLBatchRequest<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for GraphQLBatchRequest<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for GraphQLBatchRequest<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for GraphQLBatchRequest<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,