Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/schema

Package Overview
Dependencies
Maintainers
3
Versions
1150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/schema - npm Package Compare versions

Comparing version 10.0.3 to 10.0.4-alpha-20240520145936-fa5bebfdb236918a30c9fddc41a5b8cd716474b2

3

cjs/makeExecutableSchema.js

@@ -52,3 +52,3 @@ "use strict";

*/
function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, ...otherOptions }) {
function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, defaultFieldResolver, ...otherOptions }) {
// Validate and clean up arguments

@@ -83,2 +83,3 @@ if (typeof resolverValidationOptions !== 'object') {

updateResolversInPlace,
defaultFieldResolver,
});

@@ -85,0 +86,0 @@ if (Object.keys(resolverValidationOptions).length > 0) {

@@ -49,3 +49,3 @@ import { buildASTSchema, buildSchema, isSchema } from 'graphql';

*/
export function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, ...otherOptions }) {
export function makeExecutableSchema({ typeDefs, resolvers = {}, resolverValidationOptions = {}, inheritResolversFromInterfaces = false, updateResolversInPlace = false, schemaExtensions, defaultFieldResolver, ...otherOptions }) {
// Validate and clean up arguments

@@ -80,2 +80,3 @@ if (typeof resolverValidationOptions !== 'object') {

updateResolversInPlace,
defaultFieldResolver,
});

@@ -82,0 +83,0 @@ if (Object.keys(resolverValidationOptions).length > 0) {

{
"name": "@graphql-tools/schema",
"version": "10.0.3",
"version": "10.0.4-alpha-20240520145936-fa5bebfdb236918a30c9fddc41a5b8cd716474b2",
"description": "A set of utils for faster development of GraphQL tools",

@@ -11,3 +11,3 @@ "sideEffects": false,

"@graphql-tools/merge": "^9.0.3",
"@graphql-tools/utils": "^10.0.13",
"@graphql-tools/utils": "10.2.1-alpha-20240520145936-fa5bebfdb236918a30c9fddc41a5b8cd716474b2",
"tslib": "^2.4.0",

@@ -14,0 +14,0 @@ "value-or-promise": "^1.0.12"

@@ -46,2 +46,2 @@ import { GraphQLSchema } from 'graphql';

*/
export declare function makeExecutableSchema<TContext = any>({ typeDefs, resolvers, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, schemaExtensions, ...otherOptions }: IExecutableSchemaDefinition<TContext>): GraphQLSchema;
export declare function makeExecutableSchema<TContext = any>({ typeDefs, resolvers, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, schemaExtensions, defaultFieldResolver, ...otherOptions }: IExecutableSchemaDefinition<TContext>): GraphQLSchema;

@@ -1,2 +0,2 @@

import { BuildSchemaOptions, GraphQLSchema } from 'graphql';
import { BuildSchemaOptions, GraphQLFieldResolver, GraphQLSchema } from 'graphql';
import { GraphQLParseOptions, IResolvers, IResolverValidationOptions, SchemaExtensions, TypeSource } from '@graphql-tools/utils';

@@ -35,2 +35,6 @@ export interface GraphQLSchemaWithContext<TContext> extends GraphQLSchema {

schemaExtensions?: SchemaExtensions | Array<SchemaExtensions>;
/**
* Default field resolver
*/
defaultFieldResolver?: GraphQLFieldResolver<any, TContext>;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc