
import { MapperKind } from "@graphql-tools/utils";
import { __EnumValue, __Field, __InputValue, __Schema, __Type } from "graphql";

export const IntrospectionType = {
  [MapperKind.ROOT_OBJECT]       : __Schema,
  [MapperKind.TYPE]              : __Type,
  [MapperKind.OBJECT_FIELD]      : __Field,
  [MapperKind.INPUT_OBJECT_FIELD]: __InputValue,
  [MapperKind.ENUM_TYPE]         : __EnumValue,
};

export type IntrospectionKind = keyof typeof IntrospectionType;
