gql_ent

Attribute Macro gql_ent 

Source
#[gql_ent]
Expand description

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,
}