Attribute Macro entity_async_graphql_macros::gql_ent [−][src]
#[gql_ent]
Injects elements needed for an ent to be derived as a GraphQL entity.
use entity_async_graphql::gql_ent; #[gql_ent] pub struct MyEnt { name: String, value: u32, #[ent(field(computed = "123"))] computed_value: u8, #[ent(edge)] other: MyEnt, }