pub fn extract_graphql_persisted_operations(
source_path: &str,
input: &str,
) -> Result<Vec<GraphqlPersistedOperation>, GraphqlExtractionError>Expand description
Extracts common persisted-operation JSON maps and manifests.
Supported shapes include identifier-to-query maps, Apollo-style operations arrays or maps,
and entries using id, hash, or sha256Hash plus body, query, document, or text.
Query bodies are parsed for facts and then discarded.
ยงErrors
Returns GraphqlExtractionError::InvalidJson for invalid JSON,
GraphqlExtractionError::UnsupportedPersistedManifest when no entries are recognized, or
GraphqlExtractionError::InvalidGraphql when a recognized literal operation is invalid.