Trait async_graphql_relay::RelayNodeStruct
source · pub trait RelayNodeStruct {
const ID_SUFFIX: &'static str;
}
Expand description
RelayNodeStruct is a trait implemented by the GraphQL Object to ensure each Object has a globally unique ID. You should refer to the ‘RelayNodeObject’ macro which is the recommended way to implement this trait. You MUST ensure the ID_SUFFIX is unique for each object for issue will occur.