Skip to content

Commit

Permalink
make OperationKind public (#4489)
Browse files Browse the repository at this point in the history
Fix #4410

`OperationKind` was already used in a public field but the type itself
was still private.
  • Loading branch information
Geal authored and Meschreiber committed Feb 1, 2024
1 parent 7de8ffb commit c74a540
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changesets/fix_geal_expose_operationkind.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### make OperationKind public ([Issue #4410](https://github.com/apollographql/router/issues/4410))

`OperationKind` was already used in a public field but the type itself was still private.

By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/4489
2 changes: 1 addition & 1 deletion apollo-router/src/query_planner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pub(crate) use bridge_query_planner::*;
pub(crate) use caching_query_planner::*;

pub(crate) use self::fetch::OperationKind;
pub use self::fetch::OperationKind;

mod bridge_query_planner;
mod caching_query_planner;
Expand Down
1 change: 1 addition & 0 deletions apollo-router/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::graphql::Request;
use crate::http_ext;
pub use crate::http_ext::TryIntoHeaderName;
pub use crate::http_ext::TryIntoHeaderValue;
pub use crate::query_planner::OperationKind;
pub(crate) use crate::services::execution::Request as ExecutionRequest;
pub(crate) use crate::services::execution::Response as ExecutionResponse;
pub(crate) use crate::services::query_planner::Request as QueryPlannerRequest;
Expand Down

0 comments on commit c74a540

Please sign in to comment.