diff --git a/juniper/CHANGELOG.md b/juniper/CHANGELOG.md
index a4d62c3f9..0b35c9c5c 100644
--- a/juniper/CHANGELOG.md
+++ b/juniper/CHANGELOG.md
@@ -8,10 +8,11 @@
- Fix introspection query validity
The DirectiveLocation::InlineFragment had an invalid literal value,
which broke third party tools like apollo cli.
-- Added GraphQL Playground integration
- The DirectiveLocation::InlineFragment had an invalid literal value,
+- Added GraphQL Playground integration.
+ The `DirectiveLocation::InlineFragment` had an invalid literal value,
which broke third party tools like apollo cli.
- The return type of `value::object::Object::iter/iter_mut` has changed to `impl Iter`. [#312](https://github.com/graphql-rust/juniper/pull/312)
+- Add `GraphQLRequest::operation_name` [#353](https://github.com/graphql-rust/juniper/pull/353)
# [0.11.1] 2018-12-19
diff --git a/juniper/src/http/mod.rs b/juniper/src/http/mod.rs
index 58e105d37..1ad139d58 100644
--- a/juniper/src/http/mod.rs
+++ b/juniper/src/http/mod.rs
@@ -36,7 +36,7 @@ where
S: ScalarValue,
{
/// Returns the `operation_name` associated with this request.
- fn operation_name(&self) -> Option<&str> {
+ pub fn operation_name(&self) -> Option<&str> {
self.operation_name.as_ref().map(|oper_name| &**oper_name)
}
diff --git a/juniper_rocket/CHANGELOG.md b/juniper_rocket/CHANGELOG.md
index a2890b195..d2c2e44b5 100644
--- a/juniper_rocket/CHANGELOG.md
+++ b/juniper_rocket/CHANGELOG.md
@@ -1,5 +1,6 @@
# master
+- Expose the operation names from `GraphQLRequest`.
- Compatibility with the latest `juniper`.
# [0.2.0] 2018-12-17
diff --git a/juniper_rocket/src/lib.rs b/juniper_rocket/src/lib.rs
index 8f7461550..f55de5e40 100644
--- a/juniper_rocket/src/lib.rs
+++ b/juniper_rocket/src/lib.rs
@@ -107,6 +107,15 @@ where
),
}
}
+
+ pub fn operation_names(&self) -> Vec