Attribute Macro cynic::schema

source ·
#[schema]
Expand description

Imports a registered schema into a schema module.

If you have registered a schema in your build.rs, then you can apply this attribute to a module to import that schema:

#[cynic::schema("starwars")]
mod schema {}