UNPKG

@cran/gql.reflect

Version:

Cranberry Introspection Utilities for GraphQL

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