UNPKG

@grapi/server

Version:

Grapi Schema Generator For GraphQL Server

57 lines (56 loc) 1.83 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectValue = exports.ListValue = exports.EnumValue = exports.NullValue = exports.BooleanValue = exports.StringValue = exports.FloatValue = exports.IntValue = void 0; const graphql_1 = require("graphql"); const simpleValue_1 = __importDefault(require("./simpleValue")); class IntValue extends simpleValue_1.default { getType() { return graphql_1.Kind.INT; } } exports.IntValue = IntValue; class FloatValue extends simpleValue_1.default { getType() { return graphql_1.Kind.FLOAT; } } exports.FloatValue = FloatValue; class StringValue extends simpleValue_1.default { getType() { return graphql_1.Kind.STRING; } } exports.StringValue = StringValue; class BooleanValue extends simpleValue_1.default { getType() { return graphql_1.Kind.BOOLEAN; } } exports.BooleanValue = BooleanValue; class NullValue extends simpleValue_1.default { constructor() { super({ value: null, }); } getType() { return graphql_1.Kind.NULL; } getValue() { return null; } } exports.NullValue = NullValue; class EnumValue extends simpleValue_1.default { getType() { return graphql_1.Kind.ENUM; } } exports.EnumValue = EnumValue; var listValue_1 = require("./listValue"); Object.defineProperty(exports, "ListValue", { enumerable: true, get: function () { return __importDefault(listValue_1).default; } }); var objectValue_1 = require("./objectValue"); Object.defineProperty(exports, "ObjectValue", { enumerable: true, get: function () { return __importDefault(objectValue_1).default; } });