Skip to content

Commit dcd1d44

Browse files
committed
WIP - Support selecting an operation inside a query document
See issue #31 for a discussion of the feature. We should document this at some point, probably not in the README or it is going to get cluttered.
1 parent ad68836 commit dcd1d44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphql_query_derive/src/codegen.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use selection::Selection;
1010
pub(crate) fn response_for_query(
1111
schema: schema::Schema,
1212
query: query::Document,
13+
selected_operation: Option<String>,
1314
) -> Result<TokenStream, failure::Error> {
1415
let mut context = QueryContext::new(schema);
1516
let mut definitions = Vec::new();

0 commit comments

Comments
 (0)