const inOp = type => ({ description: 'This is the in operator to specify a constraint to select the objects where the value of a field equals any value in the specified array.', type: new _graphql.GraphQLList(type) })
OR: { description: 'This is the OR operator to compound constraints.', type: new _graphql.GraphQLList(new _graphql.GraphQLNonNull(classGraphQLConstraintsType)) }, AND: { description: 'This is the AND operator to compound constraints.', type: new _graphql.GraphQLList(new _graphql.GraphQLNonNull(classGraphQLConstraintsType)) }, NOR: { description: 'This is the NOR operator to compound constraints.', type: new _graphql.GraphQLList(new _graphql.GraphQLNonNull(classGraphQLConstraintsType))
return new _graphql.GraphQLList(defaultGraphQLTypes.ANY);
parseGraphQLSchema.addGraphQLQuery('classes', { description: 'The classes query can be used to retrieve the existing object classes.', type: new _graphql.GraphQLNonNull(new _graphql.GraphQLList(new _graphql.GraphQLNonNull(schemaTypes.CLASS))), resolve: async (_source, _args, context) => { try {
return new _graphql.GraphQLList(defaultGraphQLTypes.ARRAY_RESULT);
Object.keys(allResourceConfig).forEach(resource => { const resourceConfig = allResourceConfig[resource] result[resourceConfig.resource] = { description: `Get some ${resourceConfig.resource} resources`, args: filterArgs.generate(resource), type: new graphQl.GraphQLList(allReadTypes[resource]), resolve: resolvers.search.bind(resolvers, resourceConfig, null) } })
function fieldType(f){ let gqlType if(f.type===ft.int || f.type===ft.lov){ gqlType = GraphQLInt }else if(f.type===ft.bool){ gqlType = GraphQLBoolean }else if(f.type===ft.dec){ gqlType = GraphQLFloat }else if(f.type===ft.list){ gqlType = GraphQLList(GraphQLInt) }else{ gqlType = GraphQLString }/* if(f.required){ return new GraphQLNonNull(gqlType) }*/ return gqlType }
return new _graphql.GraphQLList(graphQLType); } else if (!type._isFieldType && ((0, _isPlainObject["default"])(type) || type instanceof _app.Model)) { var model = type.__isModel ? type : type.__model;
return new _graphql.GraphQLList(graphQLType); } else if (!type._isFieldType && ((0, _isPlainObject["default"])(type) || type instanceof _app.Model)) { var model = type.__isModel ? type : type.__model;
const notIn = type => ({ description: 'This is the notIn operator to specify a constraint to select the objects where the value of a field do not equal any value in the specified array.', type: new _graphql.GraphQLList(type) })