INNER CODE UNIT · Rust
from
apollographql/apollo-mcp-server · crates/apollo-schema-index/src/lib.rs:66
fn from(value: AstOperationType) -> Self {
match value {
AstOperationType::Query => OperationType::Query,
AstOperationType::Mutation => OperationType::Mutation,
AstOperationType::Subscription => OperationType::Subscription,
}
}
}
impl From<OperationType> for AstOperationType {
fn from(value: OperationType) -> Self {
match value {
OperationType::Query => AstOperationType::Query,
OperationType::Mutation => AstOperationType::Mutation,
OperationType::Subscription => AstOperationType::Subscription,
}
}
}