12 releases
0.11.10 | Nov 8, 2022 |
---|---|
0.11.9 | Nov 7, 2022 |
0.1.1 | Nov 4, 2022 |
#1134 in HTTP server
31 downloads per month
11KB
170 lines
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
which is a derive macro
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
- remove
schema_path
.
- remove
Dependencies
~3.5MB
~80K SLoC