# The Derive Macro for Shisho Policy GraphQL Schema This is a helper crate for Shisho Cloud workflows to write custom policies. This is the utility for [`shisho-policy-sdk`](https://crates.io/crates/shisho-policy-sdk) which is a [`derive macro`](https://doc.rust-lang.org/reference/procedural-macros.html#derive-macros) to allow referring a graphql query as Rust structs. ## Example usage ``` use shisho_gql_derive::*; ... #[allow(dead_code)] #[derive(ShishoGraphQLQuery)] #[shisho_graphql( query_path = "src/policies/organization/org_owners/query.graphql", response_derives = "Debug, PartialEq" )] pub struct Input; ... ``` ## Reference - [`graphql-client/graphql_query_derive`](https://github.com/graphql-rust/graphql-client/tree/main/graphql_query_derive) - remove `schema_path`.