Skip to main content

graphql_documents_to_graph

Function graphql_documents_to_graph 

Source
pub fn graphql_documents_to_graph(
    inputs: &[(&RepoId, &str, &str, &GraphqlDocument)],
) -> GraphqlGraphFacts
Expand description

Converts GraphQL documents into deterministic graph facts and links unambiguous root fields.

Each input tuple contains repository ID, source path, content hash, and extracted document. Consumers remain unlinked when zero or multiple providers expose the same root coordinate.