UNPKG

@cran/gql.reflect

Version:

Cranberry Introspection Utilities for GraphQL

12 lines (11 loc) 388 B
import { ReflectInputField } from "./ReflectInputField"; import { ReflectNamedType } from "./ReflectNamedType"; export class ReflectInput extends ReflectNamedType { fields; constructor($, _) { super($, _); this.fields = Object.fromEntries(_.inputFields.map((value) => { return [value.name, new ReflectInputField($, value, this),]; })); } }