[−][src]Derive Macro async_graphql::GQLSimpleObject
#[derive(GQLSimpleObject)]
{
// Attributes available to this derive:
#[field]
#[graphql]
}Derive a GraphQL simple object
Examples
use async_graphql::*; #[derive(GQLSimpleObject)] #[graphql(name = "MyObj1")] struct MyObj { value: i32, }