@cran/gql.reflect
Version:
Cranberry Introspection Utilities for GraphQL
12 lines (11 loc) • 384 B
JavaScript
import { ReflectInputField } from "./ReflectInputField";
import { ReflectProperty } from "./ReflectProperty";
export class ReflectField extends ReflectProperty {
args;
constructor($, _, source) {
super($, _, source);
this.args = Object.fromEntries(_.args.map((arg) => {
return [arg.name, new ReflectInputField($, arg, this),];
}));
}
}