pub fn node_count(
document: &str,
variables: &Variables,
) -> Result<u64, NodeCountError>Expand description
The most nodes document could be asked to return under variables.
worst_case_node_count is this under largest_page_sizes, and the accounting in
accounting is this under the bindings one request really sent — one spelling of the
calculation, so a bound checked offline and a cost recorded at run time cannot come to
disagree. The rules themselves live in github_graphql_node_count::node_count.
§Errors
Returns the calculation’s own NodeCountError when document does not parse, holds
no single operation, or binds a page size variables does not name.