graphql-genie
Advanced tools
Comparing version 0.4.16 to 0.4.17
@@ -1,2 +0,2 @@ | ||
import { GraphQLNonNull, getNamedType, isInputObjectType, isInputType, isInterfaceType, isListType, isNonNullType, isObjectType, isScalarType, isSpecifiedDirective, isUnionType, print } from 'graphql'; | ||
import { GraphQLNonNull, getNamedType, isEnumType, isInputObjectType, isInputType, isInterfaceType, isListType, isNonNullType, isObjectType, isScalarType, isSpecifiedDirective, isUnionType, print } from 'graphql'; | ||
import { GraphQLDate, GraphQLDateTime, GraphQLTime } from 'graphql-iso-date'; | ||
@@ -158,3 +158,3 @@ import { SchemaDirectiveVisitor, addResolveFunctionsToSchema, buildSchemaFromTypeDefinitions, makeExecutableSchema } from 'graphql-tools'; | ||
const returnType = getNamedType(graphQLfield.type); | ||
if (!isScalarType(returnType)) { // scalars don't have filters | ||
if (!isScalarType(returnType) && !isEnumType(returnType)) { // scalars don't have filters | ||
if (isInterfaceType(returnType) || isUnionType(returnType)) { // can't grab args from existing query type | ||
@@ -161,0 +161,0 @@ const where = this.schema.getType(returnType.name + 'WhereInput'); |
{ | ||
"name": "graphql-genie", | ||
"version": "0.4.16", | ||
"version": "0.4.17", | ||
"description": "GraphQL Genie", | ||
@@ -5,0 +5,0 @@ "browser": "./lib/browser.umd.js", |
import { DocumentNode, GraphQLFieldResolver, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLType, getNamedType, isInputObjectType, isInputType, isInterfaceType, isListType, isNonNullType, isObjectType, isScalarType, isSpecifiedDirective, isUnionType, print } from 'graphql'; | ||
import { DocumentNode, GraphQLFieldResolver, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLType, getNamedType, isEnumType, isInputObjectType, isInputType, isInterfaceType, isListType, isNonNullType, isObjectType, isScalarType, isSpecifiedDirective, isUnionType, print } from 'graphql'; | ||
import { GraphQLDate, GraphQLDateTime, GraphQLTime } from 'graphql-iso-date'; | ||
@@ -216,3 +216,3 @@ import { IResolvers, SchemaDirectiveVisitor, addResolveFunctionsToSchema, buildSchemaFromTypeDefinitions, makeExecutableSchema } from 'graphql-tools'; | ||
const returnType = getNamedType(graphQLfield.type); | ||
if (!isScalarType(returnType)) { // scalars don't have filters | ||
if (!isScalarType(returnType) && !isEnumType(returnType)) { // scalars don't have filters | ||
if (isInterfaceType(returnType) || isUnionType(returnType)) { // can't grab args from existing query type | ||
@@ -219,0 +219,0 @@ const where = this.schema.getType(returnType.name + 'WhereInput'); |
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 too big to display
1085704