Skip to main content

export_archify_json

Function export_archify_json 

Source
pub fn export_archify_json(
    snapshot: &GraphSnapshot,
    seeds: &[NodeId],
    subgraph_config: &SeededSubgraphConfig,
    config: &ArchifyConfig,
) -> Result<String, ArchifyError>
Expand description

Build an Archify document and serialize it to pretty JSON bytes-string.

ยงErrors

Propagates ArchifyError from the build/self-validation, or a serialization error.