use dynamic_graphql::SimpleObject;
use std::collections::HashSet;
#[derive(SimpleObject)]
pub(crate) struct PropertySchema {
key: String,
variants: Vec<String>,
}
impl From<(String, HashSet<String>)> for PropertySchema {
fn from(value: (String, HashSet<String>)) -> Self {
let (key, set) = value;
PropertySchema {
key,
variants: Vec::from_iter(set),
}
}
}