Initialisation
Added the packages and files for the backend server
This commit is contained in:
3
node_modules/@graphql-tools/schema/typings/addResolversToSchema.d.cts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/addResolversToSchema.d.cts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IAddResolversToSchemaOptions } from '@graphql-tools/utils';
|
||||
export declare function addResolversToSchema({ schema, resolvers: inputResolvers, defaultFieldResolver, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, }: IAddResolversToSchemaOptions): GraphQLSchema;
|
||||
3
node_modules/@graphql-tools/schema/typings/addResolversToSchema.d.ts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/addResolversToSchema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IAddResolversToSchemaOptions } from '@graphql-tools/utils';
|
||||
export declare function addResolversToSchema({ schema, resolvers: inputResolvers, defaultFieldResolver, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, }: IAddResolversToSchemaOptions): GraphQLSchema;
|
||||
3
node_modules/@graphql-tools/schema/typings/assertResolversPresent.d.cts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/assertResolversPresent.d.cts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IResolverValidationOptions } from '@graphql-tools/utils';
|
||||
export declare function assertResolversPresent(schema: GraphQLSchema, resolverValidationOptions?: IResolverValidationOptions): void;
|
||||
3
node_modules/@graphql-tools/schema/typings/assertResolversPresent.d.ts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/assertResolversPresent.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IResolverValidationOptions } from '@graphql-tools/utils';
|
||||
export declare function assertResolversPresent(schema: GraphQLSchema, resolverValidationOptions?: IResolverValidationOptions): void;
|
||||
5
node_modules/@graphql-tools/schema/typings/chainResolvers.d.cts
generated
vendored
Normal file
5
node_modules/@graphql-tools/schema/typings/chainResolvers.d.cts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { GraphQLResolveInfo, GraphQLFieldResolver } from 'graphql';
|
||||
import { Maybe } from '@graphql-tools/utils';
|
||||
export declare function chainResolvers<TArgs extends {
|
||||
[argName: string]: any;
|
||||
}>(resolvers: Array<Maybe<GraphQLFieldResolver<any, any, TArgs>>>): (root: any, args: TArgs, ctx: any, info: GraphQLResolveInfo) => any;
|
||||
5
node_modules/@graphql-tools/schema/typings/chainResolvers.d.ts
generated
vendored
Normal file
5
node_modules/@graphql-tools/schema/typings/chainResolvers.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { GraphQLResolveInfo, GraphQLFieldResolver } from 'graphql';
|
||||
import { Maybe } from '@graphql-tools/utils';
|
||||
export declare function chainResolvers<TArgs extends {
|
||||
[argName: string]: any;
|
||||
}>(resolvers: Array<Maybe<GraphQLFieldResolver<any, any, TArgs>>>): (root: any, args: TArgs, ctx: any, info: GraphQLResolveInfo) => any;
|
||||
3
node_modules/@graphql-tools/schema/typings/checkForResolveTypeResolver.d.cts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/checkForResolveTypeResolver.d.cts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { ValidatorBehavior } from '@graphql-tools/utils';
|
||||
export declare function checkForResolveTypeResolver(schema: GraphQLSchema, requireResolversForResolveType?: ValidatorBehavior): void;
|
||||
3
node_modules/@graphql-tools/schema/typings/checkForResolveTypeResolver.d.ts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/checkForResolveTypeResolver.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { ValidatorBehavior } from '@graphql-tools/utils';
|
||||
export declare function checkForResolveTypeResolver(schema: GraphQLSchema, requireResolversForResolveType?: ValidatorBehavior): void;
|
||||
3
node_modules/@graphql-tools/schema/typings/extendResolversFromInterfaces.d.cts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/extendResolversFromInterfaces.d.cts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IResolvers } from '@graphql-tools/utils';
|
||||
export declare function extendResolversFromInterfaces(schema: GraphQLSchema, resolvers: IResolvers): IResolvers;
|
||||
3
node_modules/@graphql-tools/schema/typings/extendResolversFromInterfaces.d.ts
generated
vendored
Normal file
3
node_modules/@graphql-tools/schema/typings/extendResolversFromInterfaces.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IResolvers } from '@graphql-tools/utils';
|
||||
export declare function extendResolversFromInterfaces(schema: GraphQLSchema, resolvers: IResolvers): IResolvers;
|
||||
9
node_modules/@graphql-tools/schema/typings/index.d.cts
generated
vendored
Normal file
9
node_modules/@graphql-tools/schema/typings/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export { assertResolversPresent } from './assertResolversPresent.cjs';
|
||||
export { chainResolvers } from './chainResolvers.cjs';
|
||||
export { addResolversToSchema } from './addResolversToSchema.cjs';
|
||||
export { checkForResolveTypeResolver } from './checkForResolveTypeResolver.cjs';
|
||||
export { extendResolversFromInterfaces } from './extendResolversFromInterfaces.cjs';
|
||||
export * from './makeExecutableSchema.cjs';
|
||||
export * from './types.cjs';
|
||||
export * from './merge-schemas.cjs';
|
||||
export { extractExtensionsFromSchema } from '@graphql-tools/utils';
|
||||
9
node_modules/@graphql-tools/schema/typings/index.d.ts
generated
vendored
Normal file
9
node_modules/@graphql-tools/schema/typings/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export { assertResolversPresent } from './assertResolversPresent.js';
|
||||
export { chainResolvers } from './chainResolvers.js';
|
||||
export { addResolversToSchema } from './addResolversToSchema.js';
|
||||
export { checkForResolveTypeResolver } from './checkForResolveTypeResolver.js';
|
||||
export { extendResolversFromInterfaces } from './extendResolversFromInterfaces.js';
|
||||
export * from './makeExecutableSchema.js';
|
||||
export * from './types.js';
|
||||
export * from './merge-schemas.js';
|
||||
export { extractExtensionsFromSchema } from '@graphql-tools/utils';
|
||||
46
node_modules/@graphql-tools/schema/typings/makeExecutableSchema.d.cts
generated
vendored
Normal file
46
node_modules/@graphql-tools/schema/typings/makeExecutableSchema.d.cts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IExecutableSchemaDefinition } from './types.cjs';
|
||||
/**
|
||||
* Builds a schema from the provided type definitions and resolvers.
|
||||
*
|
||||
* The type definitions are written using Schema Definition Language (SDL). They
|
||||
* can be provided as a string, a `DocumentNode`, a function, or an array of any
|
||||
* of these. If a function is provided, it will be passed no arguments and
|
||||
* should return an array of strings or `DocumentNode`s.
|
||||
*
|
||||
* Note: You can use GraphQL magic comment provide additional syntax
|
||||
* highlighting in your editor (with the appropriate editor plugin).
|
||||
*
|
||||
* ```js
|
||||
* const typeDefs = /* GraphQL *\/ `
|
||||
* type Query {
|
||||
* posts: [Post]
|
||||
* author(id: Int!): Author
|
||||
* }
|
||||
* `;
|
||||
* ```
|
||||
*
|
||||
* The `resolvers` object should be a map of type names to nested object, which
|
||||
* themselves map the type's fields to their appropriate resolvers.
|
||||
* See the [Resolvers](/docs/resolvers) section of the documentation for more details.
|
||||
*
|
||||
* ```js
|
||||
* const resolvers = {
|
||||
* Query: {
|
||||
* posts: (obj, args, ctx, info) => getAllPosts(),
|
||||
* author: (obj, args, ctx, info) => getAuthorById(args.id)
|
||||
* }
|
||||
* };
|
||||
* ```
|
||||
*
|
||||
* Once you've defined both the `typeDefs` and `resolvers`, you can create your
|
||||
* schema:
|
||||
*
|
||||
* ```js
|
||||
* const schema = makeExecutableSchema({
|
||||
* typeDefs,
|
||||
* resolvers,
|
||||
* })
|
||||
* ```
|
||||
*/
|
||||
export declare function makeExecutableSchema<TContext = any>({ typeDefs, resolvers, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, schemaExtensions, ...otherOptions }: IExecutableSchemaDefinition<TContext>): GraphQLSchema;
|
||||
46
node_modules/@graphql-tools/schema/typings/makeExecutableSchema.d.ts
generated
vendored
Normal file
46
node_modules/@graphql-tools/schema/typings/makeExecutableSchema.d.ts
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IExecutableSchemaDefinition } from './types.js';
|
||||
/**
|
||||
* Builds a schema from the provided type definitions and resolvers.
|
||||
*
|
||||
* The type definitions are written using Schema Definition Language (SDL). They
|
||||
* can be provided as a string, a `DocumentNode`, a function, or an array of any
|
||||
* of these. If a function is provided, it will be passed no arguments and
|
||||
* should return an array of strings or `DocumentNode`s.
|
||||
*
|
||||
* Note: You can use GraphQL magic comment provide additional syntax
|
||||
* highlighting in your editor (with the appropriate editor plugin).
|
||||
*
|
||||
* ```js
|
||||
* const typeDefs = /* GraphQL *\/ `
|
||||
* type Query {
|
||||
* posts: [Post]
|
||||
* author(id: Int!): Author
|
||||
* }
|
||||
* `;
|
||||
* ```
|
||||
*
|
||||
* The `resolvers` object should be a map of type names to nested object, which
|
||||
* themselves map the type's fields to their appropriate resolvers.
|
||||
* See the [Resolvers](/docs/resolvers) section of the documentation for more details.
|
||||
*
|
||||
* ```js
|
||||
* const resolvers = {
|
||||
* Query: {
|
||||
* posts: (obj, args, ctx, info) => getAllPosts(),
|
||||
* author: (obj, args, ctx, info) => getAuthorById(args.id)
|
||||
* }
|
||||
* };
|
||||
* ```
|
||||
*
|
||||
* Once you've defined both the `typeDefs` and `resolvers`, you can create your
|
||||
* schema:
|
||||
*
|
||||
* ```js
|
||||
* const schema = makeExecutableSchema({
|
||||
* typeDefs,
|
||||
* resolvers,
|
||||
* })
|
||||
* ```
|
||||
*/
|
||||
export declare function makeExecutableSchema<TContext = any>({ typeDefs, resolvers, resolverValidationOptions, inheritResolversFromInterfaces, updateResolversInPlace, schemaExtensions, ...otherOptions }: IExecutableSchemaDefinition<TContext>): GraphQLSchema;
|
||||
16
node_modules/@graphql-tools/schema/typings/merge-schemas.d.cts
generated
vendored
Normal file
16
node_modules/@graphql-tools/schema/typings/merge-schemas.d.cts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IExecutableSchemaDefinition } from './types.cjs';
|
||||
/**
|
||||
* Configuration object for schema merging
|
||||
*/
|
||||
export type MergeSchemasConfig<T = any> = Partial<IExecutableSchemaDefinition<T>> & {
|
||||
/**
|
||||
* The schemas to be merged
|
||||
*/
|
||||
schemas?: GraphQLSchema[];
|
||||
};
|
||||
/**
|
||||
* Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
|
||||
* @param config Configuration object
|
||||
*/
|
||||
export declare function mergeSchemas(config: MergeSchemasConfig): GraphQLSchema;
|
||||
16
node_modules/@graphql-tools/schema/typings/merge-schemas.d.ts
generated
vendored
Normal file
16
node_modules/@graphql-tools/schema/typings/merge-schemas.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import { GraphQLSchema } from 'graphql';
|
||||
import { IExecutableSchemaDefinition } from './types.js';
|
||||
/**
|
||||
* Configuration object for schema merging
|
||||
*/
|
||||
export type MergeSchemasConfig<T = any> = Partial<IExecutableSchemaDefinition<T>> & {
|
||||
/**
|
||||
* The schemas to be merged
|
||||
*/
|
||||
schemas?: GraphQLSchema[];
|
||||
};
|
||||
/**
|
||||
* Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
|
||||
* @param config Configuration object
|
||||
*/
|
||||
export declare function mergeSchemas(config: MergeSchemasConfig): GraphQLSchema;
|
||||
35
node_modules/@graphql-tools/schema/typings/types.d.cts
generated
vendored
Normal file
35
node_modules/@graphql-tools/schema/typings/types.d.cts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { TypeSource, IResolvers, IResolverValidationOptions, GraphQLParseOptions, SchemaExtensions } from '@graphql-tools/utils';
|
||||
import { BuildSchemaOptions, GraphQLSchema } from 'graphql';
|
||||
export interface GraphQLSchemaWithContext<TContext> extends GraphQLSchema {
|
||||
__context?: TContext;
|
||||
}
|
||||
/**
|
||||
* Configuration object for creating an executable schema
|
||||
*/
|
||||
export interface IExecutableSchemaDefinition<TContext = any> extends BuildSchemaOptions, GraphQLParseOptions {
|
||||
/**
|
||||
* The type definitions used to create the schema
|
||||
*/
|
||||
typeDefs: TypeSource;
|
||||
/**
|
||||
* Object describing the field resolvers for the provided type definitions
|
||||
*/
|
||||
resolvers?: IResolvers<any, TContext> | Array<IResolvers<any, TContext>>;
|
||||
/**
|
||||
* Additional options for validating the provided resolvers
|
||||
*/
|
||||
resolverValidationOptions?: IResolverValidationOptions;
|
||||
/**
|
||||
* GraphQL object types that implement interfaces will inherit any missing
|
||||
* resolvers from their interface types defined in the `resolvers` object
|
||||
*/
|
||||
inheritResolversFromInterfaces?: boolean;
|
||||
/**
|
||||
* Do not create a schema again and use the one from `buildASTSchema`
|
||||
*/
|
||||
updateResolversInPlace?: boolean;
|
||||
/**
|
||||
* Schema extensions
|
||||
*/
|
||||
schemaExtensions?: SchemaExtensions | Array<SchemaExtensions>;
|
||||
}
|
||||
35
node_modules/@graphql-tools/schema/typings/types.d.ts
generated
vendored
Normal file
35
node_modules/@graphql-tools/schema/typings/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { TypeSource, IResolvers, IResolverValidationOptions, GraphQLParseOptions, SchemaExtensions } from '@graphql-tools/utils';
|
||||
import { BuildSchemaOptions, GraphQLSchema } from 'graphql';
|
||||
export interface GraphQLSchemaWithContext<TContext> extends GraphQLSchema {
|
||||
__context?: TContext;
|
||||
}
|
||||
/**
|
||||
* Configuration object for creating an executable schema
|
||||
*/
|
||||
export interface IExecutableSchemaDefinition<TContext = any> extends BuildSchemaOptions, GraphQLParseOptions {
|
||||
/**
|
||||
* The type definitions used to create the schema
|
||||
*/
|
||||
typeDefs: TypeSource;
|
||||
/**
|
||||
* Object describing the field resolvers for the provided type definitions
|
||||
*/
|
||||
resolvers?: IResolvers<any, TContext> | Array<IResolvers<any, TContext>>;
|
||||
/**
|
||||
* Additional options for validating the provided resolvers
|
||||
*/
|
||||
resolverValidationOptions?: IResolverValidationOptions;
|
||||
/**
|
||||
* GraphQL object types that implement interfaces will inherit any missing
|
||||
* resolvers from their interface types defined in the `resolvers` object
|
||||
*/
|
||||
inheritResolversFromInterfaces?: boolean;
|
||||
/**
|
||||
* Do not create a schema again and use the one from `buildASTSchema`
|
||||
*/
|
||||
updateResolversInPlace?: boolean;
|
||||
/**
|
||||
* Schema extensions
|
||||
*/
|
||||
schemaExtensions?: SchemaExtensions | Array<SchemaExtensions>;
|
||||
}
|
||||
Reference in New Issue
Block a user