@cran/gql.reflect
Version:
Cranberry Introspection Utilities for GraphQL
16 lines (15 loc) • 571 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReflectInput = void 0;
const ReflectInputField_1 = require("./ReflectInputField");
const ReflectNamedType_1 = require("./ReflectNamedType");
class ReflectInput extends ReflectNamedType_1.ReflectNamedType {
fields;
constructor($, _) {
super($, _);
this.fields = Object.fromEntries(_.inputFields.map((value) => {
return [value.name, new ReflectInputField_1.ReflectInputField($, value, this),];
}));
}
}
exports.ReflectInput = ReflectInput;