//! This code was AUTOGENERATED using the Codama library.
use {
    crate::types::graphql::RelationshipKindGraphQL, carbon_core::graphql::primitives::Pubkey,
    juniper::GraphQLObject,
};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "RelationshipEntry")]
pub struct RelationshipEntryGraphQL {
    pub kind: RelationshipKindGraphQL,
    pub key: Pubkey,
}

impl From<crate::types::RelationshipEntry> for RelationshipEntryGraphQL {
    fn from(original: crate::types::RelationshipEntry) -> Self {
        Self {
            kind: original.kind.into(),
            key: carbon_core::graphql::primitives::Pubkey(original.key),
        }
    }
}
