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 which is a derive macro to allow referring a graphql query as Rust structs.
Example usage
use shisho_datasource::*;
...
#[allow(dead_code)]
#[derive(InputQuery)]
#[graphql(
query_path = "src/policies/organization/org_owners/query.graphql",
derives = "Debug, PartialEq"
)]
pub struct Input;
...
Reference
graphql-client/graphql_query_derive- remove
schema_path.
- remove