Macro cynic::use_schema

source ·
use_schema!() { /* proc-macro */ }
Expand description

Imports a schema for use by cynic.

This creates all the required type markers & selection builder structures required to use cynic with a given schema. It should usually be called in a module named schema, as the only statement in that module

mod schema {
    cynic::use_schema!("../schemas/starwars.schema.graphql");
}