Skip to main content

graphql_query

Macro graphql_query 

Source
graphql_query!() { /* proc-macro */ }
Expand description

Validate a GraphQL query or mutation against the embedded Sui schema at compile time and return it as a &'static str.

On a syntactically or semantically invalid input (unknown field, wrong argument type, undefined variable, etc.) the macro emits one compile_error! per apollo-compiler diagnostic, so the offending call site fails to build with the diagnostic text inline.