#[derive(ResolvedObject)]
{
// Attributes available to this derive:
#[graphql]
}
Expand description
Define a new GraphQL object type.
Resolved objects should be used with #[ResolvedObjectFields]
macro.
ยงMacro Attributes
Attribute | Description | Type |
---|---|---|
root | Mark this type as a root query. | bool |
name | The name of the object | String |
mark | Mark the object as implement Interface, all interface fields should be defined manually | Path |
impl | Mark the object as implement Interface, the interface trait should be implemented | Path |
get_type_name | If true, it allows the user to implement TypeName trait | bool |
register | Register other types that implement Register trait | Path |