Build GraphQL operation strings from introspection-style argument specs at runtime.
Operations have shape:
<op_type> <op_name>($a: T!, $b: U) { <op_name>(a: $a, b: $b) { <selection> } }Only variables that the caller actually supplies are declared and passed, so GraphQL doesn't reject the request for unused variables.
Summary
Functions
Build a GraphQL operation string.
Types
Functions
Build a GraphQL operation string.
op_type—:queryor:mutationname— the operation/field name (e.g."account")args— list of argument specs[%{"name" => "id", "type" => type_ref}, ...]variables— variables map; only keys present here are declared/passedselection— selection set body (without braces). Empty string means no selection.