Derive Macro ResolvedObject

Source
#[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

AttributeDescriptionType
rootMark this type as a root query.bool
nameThe name of the objectString
markMark the object as implement Interface, all interface fields should be defined manuallyPath
implMark the object as implement Interface, the interface trait should be implementedPath
get_type_nameIf true, it allows the user to implement TypeName traitbool
registerRegister other types that implement Register traitPath