UNPKG

@userlab/dx

Version:

Build efficient GraphQL backend

38 lines (37 loc) 1.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.operators = exports.Operator = void 0; var graphql_1 = require("graphql"); var Operator; (function (Operator) { Operator["eq"] = "eq"; Operator["ne"] = "ne"; Operator["gt"] = "gt"; Operator["gte"] = "gte"; Operator["lt"] = "lt"; Operator["lte"] = "lte"; Operator["is"] = "is"; Operator["not"] = "not"; Operator["in"] = "in"; Operator["notIn"] = "notIn"; Operator["like"] = "like"; Operator["notLike"] = "notLike"; Operator["iLike"] = "iLike"; Operator["insub"] = "insub"; })(Operator = exports.Operator || (exports.Operator = {})); exports.operators = { eq: { type: graphql_1.GraphQLString, sql: '=' }, ne: { type: graphql_1.GraphQLString, sql: '!=' }, gt: { type: graphql_1.GraphQLString, sql: '>' }, gte: { type: graphql_1.GraphQLString, sql: '>=' }, lt: { type: graphql_1.GraphQLString, sql: '<' }, lte: { type: graphql_1.GraphQLString, sql: '<=' }, is: { type: graphql_1.GraphQLString, sql: 'IS' }, not: { type: graphql_1.GraphQLString, sql: 'IS NOT' }, in: { type: new graphql_1.GraphQLList(graphql_1.GraphQLString), sql: 'IN' }, notIn: { type: new graphql_1.GraphQLList(graphql_1.GraphQLString), sql: 'NOT IN' }, like: { type: graphql_1.GraphQLString, sql: 'LIKE' }, notLike: { type: graphql_1.GraphQLString, sql: 'NOT LIKE' }, iLike: { type: graphql_1.GraphQLString, sql: 'ILIKE' }, insub: { type: graphql_1.GraphQLString, sql: 'IN' }, };