Socket
Socket
Sign inDemoInstall

graphql-genie

Package Overview
Dependencies
21
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.16 to 0.4.17

4

lib/GraphQLSchemaBuilder.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc