Fix typo
This commit is contained in:
parent
d208342168
commit
6172887612
|
@ -42,7 +42,7 @@ impl IntoQueryBuilder for GQLRequest {
|
|||
) -> std::result::Result<QueryBuilder, ParseRequestError> {
|
||||
let mut builder = QueryBuilder::new(self.query);
|
||||
if let Some(operation_name) = self.operation_name {
|
||||
builder = builder.operator_name(operation_name);
|
||||
builder = builder.operation_name(operation_name);
|
||||
}
|
||||
if let Some(variables) = self.variables {
|
||||
if let Ok(variables) = Variables::parse_from_json(variables) {
|
||||
|
|
|
@ -157,7 +157,7 @@ impl QueryBuilder {
|
|||
}
|
||||
|
||||
/// Specify the operation name.
|
||||
pub fn operator_name<T: Into<String>>(self, name: T) -> Self {
|
||||
pub fn operation_name<T: Into<String>>(self, name: T) -> Self {
|
||||
QueryBuilder {
|
||||
operation_name: Some(name.into()),
|
||||
..self
|
||||
|
|
Loading…
Reference in New Issue
Block a user