@cran/gql.reflect
Version:
Cranberry Introspection Utilities for GraphQL
13 lines (12 loc) • 434 B
JavaScript
import { ReflectEnumValue } from "./ReflectEnumValue";
import { ReflectNamedType } from "./ReflectNamedType";
import { createHashList } from "../utilities/HashList";
export class ReflectEnum extends ReflectNamedType {
values;
constructor($, _) {
super($, _);
this.values = createHashList(_.enumValues.map((value, index) => {
return new ReflectEnumValue($, value, this, index);
}));
}
}