Crate juniper_codegen[][src]

Expand description

This crate supplies custom derive implementations for the juniper crate.

You should not depend on juniper_codegen directly. You only need the juniper crate.

Attribute Macros

graphql_interface

#[graphql_interface] macro for generating a GraphQL interface implementation for traits and its implementers.

graphql_object

The object proc macro is the primary way of defining GraphQL resolvers that can not be implemented with the GraphQLObject derive.

graphql_scalar

Expose GraphQL scalars

graphql_subscription

A proc macro for defining a GraphQL subscription.

graphql_union

#[graphql_union] macro for deriving a GraphQL union implementation for traits.

Derive Macros

GraphQLEnum
GraphQLInputObject
GraphQLObject
GraphQLScalarValue

This custom derive macro implements the #[derive(GraphQLScalarValue)] derive.

GraphQLUnion

#[derive(GraphQLUnion)] macro for deriving a GraphQL union implementation for enums and structs.