graphql-genie
Advanced tools
Comparing version 0.4.18 to 0.4.19
@@ -423,2 +423,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
const currKind = currType.kind; | ||
currType = currType.kind === 'ENUM' ? 'String' : currType.name; | ||
@@ -440,2 +441,5 @@ if (currType === 'ID' || currType === 'String') { | ||
} | ||
else if (currKind === 'SCALAR') { | ||
currType = Object; | ||
} | ||
let inverse; | ||
@@ -442,0 +446,0 @@ if (isString(currType)) { |
@@ -9,4 +9,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import { GenerateUpsert } from './GenerateUpsert'; | ||
import { GenerateUpdate } from './GenerateUpdate'; | ||
import { GraphQLObjectType, getNamedType, getNullableType, introspectionFromSchema, isEnumType, isListType, isObjectType, isScalarType, printType } from 'graphql'; | ||
import FortuneGraph from './FortuneGraph'; | ||
@@ -17,4 +17,4 @@ import { GenerateConnections } from './GenerateConnections'; | ||
import { GenerateGetAll } from './GenerateGetAll'; | ||
import { assign, forOwn, get, isArray, isEmpty, isFunction, isPlainObject, isString, set } from 'lodash'; | ||
import { GenerateUpsert } from './GenerateUpsert'; | ||
import { assign, forOwn, get, isArray, isEmpty, isFunction, isNumber, isPlainObject, isString, set } from 'lodash'; | ||
import { GraphQLObjectType, getNamedType, getNullableType, introspectionFromSchema, isEnumType, isListType, isObjectType, isScalarType, printType } from 'graphql'; | ||
import { GraphQLSchemaBuilder } from './GraphQLSchemaBuilder'; | ||
@@ -26,3 +26,2 @@ import { getReturnType } from './GraphQLUtils'; | ||
import { GenerateMigrations } from './GenerateMigrations'; | ||
import { isNumber } from 'util'; | ||
export class GraphQLGenie { | ||
@@ -29,0 +28,0 @@ constructor(options) { |
{ | ||
"name": "graphql-genie", | ||
"version": "0.4.18", | ||
"version": "0.4.19", | ||
"description": "GraphQL Genie", | ||
@@ -5,0 +5,0 @@ "browser": "./lib/browser.umd.js", |
@@ -464,3 +464,3 @@ import { atob, btoa } from 'abab'; | ||
} | ||
const currKind = currType.kind; | ||
currType = currType.kind === 'ENUM' ? 'String' : currType.name; | ||
@@ -477,2 +477,4 @@ if (currType === 'ID' || currType === 'String') { | ||
currType = Date; | ||
} else if (currKind === 'SCALAR') { | ||
currType = Object; | ||
} | ||
@@ -479,0 +481,0 @@ let inverse: string; |
import { GenerateUpsert } from './GenerateUpsert'; | ||
import { GenerateUpdate } from './GenerateUpdate'; | ||
import { GraphQLFieldResolver, GraphQLInputObjectType, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, IntrospectionObjectType, IntrospectionQuery, IntrospectionType, getNamedType, getNullableType, introspectionFromSchema, isEnumType, isListType, isObjectType, isScalarType, printType } from 'graphql'; | ||
import FortuneGraph from './FortuneGraph'; | ||
@@ -9,4 +9,4 @@ import { GenerateConnections } from './GenerateConnections'; | ||
import { GenerateGetAll } from './GenerateGetAll'; | ||
import { assign, forOwn, get, isArray, isEmpty, isFunction, isPlainObject, isString, set } from 'lodash'; | ||
import { GenerateUpsert } from './GenerateUpsert'; | ||
import { assign, forOwn, get, isArray, isEmpty, isFunction, isNumber, isPlainObject, isString, set } from 'lodash'; | ||
import { GraphQLFieldResolver, GraphQLInputObjectType, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, IntrospectionObjectType, IntrospectionQuery, IntrospectionType, getNamedType, getNullableType, introspectionFromSchema, isEnumType, isListType, isObjectType, isScalarType, printType } from 'graphql'; | ||
import { DataResolver, FortuneOptions, FortuneRecordTypeDefinitions, GenerateConfig, GenericObject, GeniePlugin, GraphQLGenieOptions, TypeGenerator } from './GraphQLGenieInterfaces'; | ||
@@ -19,3 +19,2 @@ import { GraphQLSchemaBuilder } from './GraphQLSchemaBuilder'; | ||
import { GenerateMigrations } from './GenerateMigrations'; | ||
import { isNumber } from 'util'; | ||
@@ -22,0 +21,0 @@ export class GraphQLGenie { |
Sorry, the diff of this file is too big to display
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 too big to display
1042574
21378