//! This code was AUTOGENERATED using the Codama library.
use juniper::GraphQLEnum;

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "RelationshipKind")]
pub enum RelationshipKindGraphQL {
    Collection,
    ChildGroup,
    ParentGroup,
    Asset,
}

impl From<crate::types::RelationshipKind> for RelationshipKindGraphQL {
    fn from(original: crate::types::RelationshipKind) -> Self {
        match original {
            crate::types::RelationshipKind::Collection => Self::Collection,
            crate::types::RelationshipKind::ChildGroup => Self::ChildGroup,
            crate::types::RelationshipKind::ParentGroup => Self::ParentGroup,
            crate::types::RelationshipKind::Asset => Self::Asset,
        }
    }
}
