[−][src]Struct async_graphql::QueryBuilder
Query builder
Methods
impl QueryBuilder
[src][−]
pub fn new<T: Into<String>>(query_source: T) -> QueryBuilder
[src][−]
Create query builder with query source.
pub fn operator_name<T: Into<String>>(self, name: T) -> Self
[src][−]
Specify the operation name.
pub fn variables(self, variables: Variables) -> Self
[src][−]
Specify the variables.
pub fn data<D: Any + Send + Sync>(self, data: D) -> Self
[src][−]
Add a context data that can be accessed in the Context
, you access it with Context::data
.
This data is only valid for this query
pub fn set_files_holder(&mut self, files_holder: TempDir)
[src][−]
Set file holder
pub fn set_upload(
&mut self,
var_path: &str,
filename: &str,
content_type: Option<&str>,
path: &Path
)
[src][−]
&mut self,
var_path: &str,
filename: &str,
content_type: Option<&str>,
path: &Path
)
Set uploaded file path
pub async fn execute<'_, Query, Mutation, Subscription>(
self,
schema: &'_ Schema<Query, Mutation, Subscription>
) -> Result<QueryResponse> where
Query: ObjectType + Send + Sync,
Mutation: ObjectType + Send + Sync,
[src][−]
self,
schema: &'_ Schema<Query, Mutation, Subscription>
) -> Result<QueryResponse> where
Query: ObjectType + Send + Sync,
Mutation: ObjectType + Send + Sync,
Execute the query.
Auto Trait Implementations
impl !RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl !UnwindSafe for QueryBuilder
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,
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>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,