Derive Macros§
- Relay
Interface - The RelayInterface macro is applied to a GraphQL Interface enum to allow it to be used for Relay’s node query. This enum should contain all types that that exist in your GraphQL schema to work as designed in the Relay server specification.
- Relay
Node Object - The RelayNodeObject macro is applied to a type to automatically implement the RelayNodeStruct trait.