@graphql-tools/schema 8.5.1 → 8.5.2-alpha-fbf97581.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addResolversToSchema = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  const utils_1 = require("@graphql-tools/utils");
6
6
  const checkForResolveTypeResolver_js_1 = require("./checkForResolveTypeResolver.js");
7
7
  const extendResolversFromInterfaces_js_1 = require("./extendResolversFromInterfaces.js");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertResolversPresent = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  const utils_1 = require("@graphql-tools/utils");
6
6
  function assertResolversPresent(schema, resolverValidationOptions = {}) {
7
7
  const { requireResolversForArgs, requireResolversForNonScalar, requireResolversForAllFields } = resolverValidationOptions;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.chainResolvers = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  function chainResolvers(resolvers) {
6
6
  return (root, args, ctx, info) => resolvers.reduce((prev, curResolver) => {
7
7
  if (curResolver != null) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeExecutableSchema = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  const utils_1 = require("@graphql-tools/utils");
6
6
  const addResolversToSchema_js_1 = require("./addResolversToSchema.js");
7
7
  const assertResolversPresent_js_1 = require("./assertResolversPresent.js");
@@ -1,4 +1,4 @@
1
- import { GraphQLEnumType, isSchema, GraphQLScalarType, GraphQLUnionType, GraphQLInterfaceType, GraphQLObjectType, isSpecifiedScalarType, isScalarType, isEnumType, isUnionType, isInterfaceType, isObjectType, } from 'graphql';
1
+ import { GraphQLEnumType, isSchema, GraphQLScalarType, GraphQLUnionType, GraphQLInterfaceType, GraphQLObjectType, isSpecifiedScalarType, isScalarType, isEnumType, isUnionType, isInterfaceType, isObjectType, } from '@graphql-tools/graphql';
2
2
  import { mapSchema, MapperKind, forEachDefaultValue, serializeInputValue, healSchema, parseInputValue, forEachField, } from '@graphql-tools/utils';
3
3
  import { checkForResolveTypeResolver } from './checkForResolveTypeResolver.js';
4
4
  import { extendResolversFromInterfaces } from './extendResolversFromInterfaces.js';
@@ -1,4 +1,4 @@
1
- import { getNamedType, isScalarType } from 'graphql';
1
+ import { getNamedType, isScalarType } from '@graphql-tools/graphql';
2
2
  import { forEachField } from '@graphql-tools/utils';
3
3
  export function assertResolversPresent(schema, resolverValidationOptions = {}) {
4
4
  const { requireResolversForArgs, requireResolversForNonScalar, requireResolversForAllFields } = resolverValidationOptions;
@@ -1,4 +1,4 @@
1
- import { defaultFieldResolver } from 'graphql';
1
+ import { defaultFieldResolver } from '@graphql-tools/graphql';
2
2
  export function chainResolvers(resolvers) {
3
3
  return (root, args, ctx, info) => resolvers.reduce((prev, curResolver) => {
4
4
  if (curResolver != null) {
@@ -1,4 +1,4 @@
1
- import { buildASTSchema, buildSchema, isSchema } from 'graphql';
1
+ import { buildASTSchema, buildSchema, isSchema } from '@graphql-tools/graphql';
2
2
  import { asArray, pruneSchema } from '@graphql-tools/utils';
3
3
  import { addResolversToSchema } from './addResolversToSchema.js';
4
4
  import { assertResolversPresent } from './assertResolversPresent.js';
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-tools/schema",
3
- "version": "8.5.1",
3
+ "version": "8.5.2-alpha-fbf97581.0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
- "peerDependencies": {
7
- "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
- },
9
6
  "dependencies": {
10
- "@graphql-tools/merge": "8.3.1",
11
- "@graphql-tools/utils": "8.9.0",
7
+ "@graphql-tools/merge": "8.3.2-alpha-fbf97581.0",
8
+ "@graphql-tools/utils": "8.9.1-alpha-fbf97581.0",
9
+ "@graphql-tools/graphql": "0.1.0-alpha-fbf97581.0",
12
10
  "tslib": "^2.4.0",
13
11
  "value-or-promise": "1.0.11"
14
12
  },
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IResolvers, IResolverValidationOptions, IAddResolversToSchemaOptions } from '@graphql-tools/utils';
3
3
  export declare function addResolversToSchema(schemaOrOptions: GraphQLSchema | IAddResolversToSchemaOptions, legacyInputResolvers?: IResolvers, legacyInputValidationOptions?: IResolverValidationOptions): GraphQLSchema;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IResolverValidationOptions } from '@graphql-tools/utils';
3
3
  export declare function assertResolversPresent(schema: GraphQLSchema, resolverValidationOptions?: IResolverValidationOptions): void;
@@ -1,4 +1,4 @@
1
- import { GraphQLResolveInfo, GraphQLFieldResolver } from 'graphql';
1
+ import { GraphQLResolveInfo, GraphQLFieldResolver } from '@graphql-tools/graphql';
2
2
  import { Maybe } from '@graphql-tools/utils';
3
3
  export declare function chainResolvers<TArgs extends {
4
4
  [argName: string]: any;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { ValidatorBehavior } from '@graphql-tools/utils';
3
3
  export declare function checkForResolveTypeResolver(schema: GraphQLSchema, requireResolversForResolveType?: ValidatorBehavior): void;
@@ -1,3 +1,3 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IResolvers } from '@graphql-tools/utils';
3
3
  export declare function extendResolversFromInterfaces(schema: GraphQLSchema, resolvers: IResolvers): IResolvers;
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IExecutableSchemaDefinition } from './types.js';
3
3
  /**
4
4
  * Builds a schema from the provided type definitions and resolvers.
@@ -1,4 +1,4 @@
1
- import { GraphQLSchema } from 'graphql';
1
+ import { GraphQLSchema } from '@graphql-tools/graphql';
2
2
  import { IExecutableSchemaDefinition } from './types.js';
3
3
  /**
4
4
  * Configuration object for schema merging
@@ -1,6 +1,6 @@
1
1
  import { TypeSource, IResolvers, IResolverValidationOptions, GraphQLParseOptions, PruneSchemaOptions } from '@graphql-tools/utils';
2
2
  import { SchemaExtensions } from '@graphql-tools/merge';
3
- import { BuildSchemaOptions } from 'graphql';
3
+ import { BuildSchemaOptions } from '@graphql-tools/graphql';
4
4
  /**
5
5
  * Configuration object for creating an executable schema
6
6
  */