INNER CODE UNIT · Rust

from

apollographql/apollo-mcp-server · crates/apollo-schema-index/src/lib.rs:76

    fn from(value: OperationType) -> Self {
        match value {
            OperationType::Query => AstOperationType::Query,
            OperationType::Mutation => AstOperationType::Mutation,
            OperationType::Subscription => AstOperationType::Subscription,
        }
    }
}

pub struct Options {
    /// The maximum number of matching schema types to include in the results
    pub max_type_matches: usize,

    /// The maximum number of paths to root to include for each matching schema type
    pub max_paths_per_type: usize,

    /// The boost factor applied to shorter paths to root (0.0 for no boost, 1.0 for 100% boost)
    pub short_path_boost_factor: f32,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…