graphile-build-pg
Advanced tools
Comparing version 4.0.0-alpha.2 to 4.0.0-alpha.3
@@ -222,3 +222,3 @@ "use strict"; | ||
description: `A list of \`${tableTypeName}\` objects.`, | ||
type: new GraphQLNonNull(new GraphQLList(TableType)), | ||
type: new GraphQLNonNull(new GraphQLList(nullableIf(!pgForbidSetofFunctionsToReturnNull, TableType))), | ||
resolve(data) { | ||
@@ -225,0 +225,0 @@ return data.data.map(handleNullRow); |
@@ -29,6 +29,4 @@ "use strict"; | ||
var _graphqlTypeJson = require("graphql-type-json"); | ||
var _GraphQLJSON = require("../GraphQLJSON"); | ||
var _graphqlTypeJson2 = _interopRequireDefault(_graphqlTypeJson); | ||
var _postgresInterval = require("postgres-interval"); | ||
@@ -61,3 +59,2 @@ | ||
}); | ||
/* | ||
@@ -111,3 +108,3 @@ const { | ||
exports.default = function PgTypesPlugin(builder, { pgExtendedTypes = true, pgInflection: inflection }) { | ||
exports.default = function PgTypesPlugin(builder, { pgExtendedTypes = true, pgInflection: inflection, pgLegacyJsonUuid = false }) { | ||
// XXX: most of this should be in an "init" hook, not a "build" hook | ||
@@ -296,7 +293,7 @@ builder.hook("build", build => { | ||
const SimpleTime = stringType("Time", "The exact time of day, does not include the date. May or may not have a timezone offset."); | ||
const SimpleJSON = stringType("JSON", "A JavaScript object encoded in the JSON format as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf)."); | ||
const SimpleUUID = stringType("UUID", "A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122)."); | ||
const SimpleJSON = stringType(pgLegacyJsonUuid ? "Json" : "JSON", "A JavaScript object encoded in the JSON format as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf)."); | ||
const SimpleUUID = stringType(pgLegacyJsonUuid ? "Uuid" : "UUID", "A universally unique identifier as defined by [RFC 4122](https://tools.ietf.org/html/rfc4122)."); | ||
// pgExtendedTypes might change what types we use for things | ||
const JSONType = pgExtendedTypes ? _graphqlTypeJson2.default : SimpleJSON; | ||
const JSONType = pgExtendedTypes ? pgLegacyJsonUuid ? _GraphQLJSON.GraphQLJson : _GraphQLJSON.GraphQLJSON : SimpleJSON; | ||
const UUIDType = SimpleUUID; // GraphQLUUID | ||
@@ -303,0 +300,0 @@ const DateType = SimpleDate; // GraphQLDate |
{ | ||
"name": "graphile-build-pg", | ||
"version": "4.0.0-alpha.2", | ||
"version": "4.0.0-alpha.3", | ||
"description": "Build a GraphQL schema by reflection over a PostgreSQL schema. Easy to customize since it's built with plugins on graphile-build", | ||
@@ -42,3 +42,2 @@ "main": "node8plus/index.js", | ||
"graphql-iso-date": "^3.2.0", | ||
"graphql-type-json": "^0.1.4", | ||
"jsonwebtoken": "^8.1.1", | ||
@@ -45,0 +44,0 @@ "lodash": ">=4 <5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
905693
13
119
4878
- Removedgraphql-type-json@^0.1.4
- Removedgraphql-type-json@0.1.4(transitive)