We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c52e89e + b1173b0 commit 5ffb8a9Copy full SHA for 5ffb8a9
graphql_client_codegen/src/query.rs
@@ -154,7 +154,7 @@ where
154
) => {
155
let on = schema.query_type();
156
let resolved_operation: ResolvedOperation = ResolvedOperation {
157
- name: q.name.as_ref().expect("query without name").as_ref().into(),
+ name: q.name.as_ref().expect("query without name. Instead of `query (...)`, write `query SomeName(...)` in your .graphql file").as_ref().into(),
158
_operation_type: operations::OperationType::Query,
159
object_id: on,
160
selection_set: Vec::with_capacity(q.selection_set.items.len()),
0 commit comments