import type { GraphQLFieldResolver, GraphQLResolveInfo } from "graphql"; import type { Driver } from "neo4j-driver"; import type { Node, Relationship } from "../../../classes"; import type { Neo4jDatabaseInfo } from "../../../classes/Neo4jDatabaseInfo"; import { Executor } from "../../../classes/Executor"; import type { AuthorizationContext, ContextFeatures, FulltextContext } from "../../../types"; import type { Neo4jGraphQLSchemaModel } from "../../../schema-model/Neo4jGraphQLSchemaModel"; import type { Neo4jGraphQLAuthorization } from "../../../classes/authorization/Neo4jGraphQLAuthorization"; import type { Neo4jGraphQLContext } from "../../../types/neo4j-graphql-context"; export type WrapResolverArguments = { driver?: Driver; nodes: Node[]; relationships: Relationship[]; jwtPayloadFieldsMap?: Map; schemaModel: Neo4jGraphQLSchemaModel; dbInfo?: Neo4jDatabaseInfo; features: ContextFeatures; authorization?: Neo4jGraphQLAuthorization; }; /** * The type describing the context generated by {@link wrapQueryAndMutation}. */ export interface Neo4jGraphQLComposedContext extends Neo4jGraphQLContext { /** * @deprecated The use of this field is now deprecated in favour of {@link schemaModel}. */ nodes: Node[]; /** * @deprecated The use of this field is now deprecated in favour of {@link schemaModel}. */ relationships: Relationship[]; schemaModel: Neo4jGraphQLSchemaModel; features: ContextFeatures; subscriptionsEnabled: boolean; executor: Executor; authorization: AuthorizationContext; neo4jDatabaseInfo?: Neo4jDatabaseInfo; fulltext?: FulltextContext; } export declare const wrapQueryAndMutation: ({ driver, nodes, relationships, jwtPayloadFieldsMap, schemaModel, dbInfo, authorization, features, }: WrapResolverArguments) => (next: GraphQLFieldResolver) => (root: any, args: any, context: Neo4jGraphQLContext, info: GraphQLResolveInfo) => Promise; //# sourceMappingURL=wrap-query-and-mutation.d.ts.map