pub fn parse_graphql_source(
language: SourceLanguage,
input: &str,
) -> Result<GraphqlDocument, GraphqlExtractionError>Expand description
Extracts literal embedded GraphQL and focused exact resolver declarations.
Dynamic or syntactically invalid GraphQL candidates are not promoted to contracts. They make the returned document partial and add a warning. Resolver recognition is intentionally limited to popular declarative patterns with literal field coordinates and named implementation symbols.
ยงErrors
Returns GraphqlExtractionError when a configured extraction budget is exhausted.