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.

Required Associated Constants§

source

const ID_SUFFIX: &'static str

ID_SUFFIX is the suffix appended to the nodes ID to create the relay ID. This MUST be unique for each type in the system.

Implementors§