import type { GraphQLResolveInfo , GraphQLScalarType , GraphQLScalarTypeConfig } from 'graphql' ; import type { EZContext } from 'graphql-ez' ; import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core' ; export type Maybe < T > = T | null ; export type InputMaybe < T > = Maybe < T > ; export type Exact < T extends { [ key ] : unknown ; } > = { [ K in keyof T ] : T [ K ] ; } ; export type MakeOptional < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] ? : Maybe < T [ SubKey ] > ; } ; export type MakeMaybe < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] : Maybe < T [ SubKey ] > ; } ; export type ResolverFn < TResult , TParent , TContext , TArgs > = ( parent : TParent , args : TArgs , context : TContext , info : GraphQLResolveInfo ) => Promise < import ( 'graphql-ez' ) . DeepPartial < TResult > > | import ( 'graphql-ez' ) . DeepPartial < TResult > ; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { ID : string ; String : string ; Boolean : boolean ; Int : number ; Float : number ; /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ DateTime : string ; _FieldSet : any ; } ; export type Query = { __typename ? : 'Query' ; hello : Scalars [ 'String' ] ; hello2 : Scalars [ 'String' ] ; hello3 : Scalars [ 'String' ] ; } ; export type Subscription = { __typename ? : 'Subscription' ; hello : Scalars [ 'String' ] ; } ; export type ResolverTypeWrapper < T > = Promise < T > | T ; export type ResolverWithResolve < TResult , TParent , TContext , TArgs > = { resolve : ResolverFn < TResult , TParent , TContext , TArgs > ; } ; export type Resolver < TResult , TParent = { } , TContext = { } , TArgs = { } > = ResolverFn < TResult , TParent , TContext , TArgs > | ResolverWithResolve < TResult , TParent , TContext , TArgs > ; export type SubscriptionSubscribeFn < TResult , TParent , TContext , TArgs > = ( parent : TParent , args : TArgs , context : TContext , info : GraphQLResolveInfo ) => AsyncIterable < TResult > | Promise < AsyncIterable < TResult > > ; export type SubscriptionResolveFn < TResult , TParent , TContext , TArgs > = ( parent : TParent , args : TArgs , context : TContext , info : GraphQLResolveInfo ) => TResult | Promise < TResult > ; export interface SubscriptionSubscriberObject < TResult , TKey extends string , TParent , TContext , TArgs > { subscribe : SubscriptionSubscribeFn < { [ key in TKey ] : TResult ; } , TParent , TContext , TArgs > ; resolve ? : SubscriptionResolveFn < TResult , { [ key in TKey ] : TResult ; } , TContext , TArgs > ; } export interface SubscriptionResolverObject < TResult , TParent , TContext , TArgs > { subscribe : SubscriptionSubscribeFn < any , TParent , TContext , TArgs > ; resolve : SubscriptionResolveFn < TResult , any , TContext , TArgs > ; } export type SubscriptionObject < TResult , TKey extends string , TParent , TContext , TArgs > = SubscriptionSubscriberObject < TResult , TKey , TParent , TContext , TArgs > | SubscriptionResolverObject < TResult , TParent , TContext , TArgs > ; export type SubscriptionResolver < TResult , TKey extends string , TParent = { } , TContext = { } , TArgs = { } > = ( ( ... args : any [ ] ) => SubscriptionObject < TResult , TKey , TParent , TContext , TArgs > ) | SubscriptionObject < TResult , TKey , TParent , TContext , TArgs > ; export type TypeResolveFn < TTypes , TParent = { } , TContext = { } > = ( parent : TParent , context : TContext , info : GraphQLResolveInfo ) => Maybe < TTypes > | Promise < Maybe < TTypes > > ; export type IsTypeOfResolverFn < T = { } , TContext = { } > = ( obj : T , context : TContext , info : GraphQLResolveInfo ) => boolean | Promise < boolean > ; export type NextResolverFn < T > = ( ) => Promise < T > ; export type DirectiveResolverFn < TResult = { } , TParent = { } , TContext = { } , TArgs = { } > = ( next : NextResolverFn < TResult > , parent : TParent , args : TArgs , context : TContext , info : GraphQLResolveInfo ) => TResult | Promise < TResult > ; /** Mapping between all available schema types and the resolvers types */ export type ResolversTypes = { DateTime : ResolverTypeWrapper < Scalars [ 'DateTime' ] > ; Query : ResolverTypeWrapper < { } > ; String : ResolverTypeWrapper < Scalars [ 'String' ] > ; Subscription : ResolverTypeWrapper < { } > ; Boolean : ResolverTypeWrapper < Scalars [ 'Boolean' ] > ; Int : ResolverTypeWrapper < Scalars [ 'Int' ] > ; } ; /** Mapping between all available schema types and the resolvers parents */ export type ResolversParentTypes = { DateTime : Scalars [ 'DateTime' ] ; Query : { } ; String : Scalars [ 'String' ] ; Subscription : { } ; Boolean : Scalars [ 'Boolean' ] ; Int : Scalars [ 'Int' ] ; } ; export interface DateTimeScalarConfig extends GraphQLScalarTypeConfig < ResolversTypes [ 'DateTime' ] , any > { name : 'DateTime' ; } export type QueryResolvers < ContextType = EZContext , ParentType extends ResolversParentTypes [ 'Query' ] = ResolversParentTypes [ 'Query' ] > = { hello ? : Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ; hello2 ? : Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ; hello3 ? : Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ; } ; export type SubscriptionResolvers < ContextType = EZContext , ParentType extends ResolversParentTypes [ 'Subscription' ] = ResolversParentTypes [ 'Subscription' ] > = { hello ? : SubscriptionResolver < ResolversTypes [ 'String' ] , 'hello' , ParentType , ContextType > ; } ; export type Resolvers < ContextType = EZContext > = { DateTime ? : GraphQLScalarType ; Query ? : QueryResolvers < ContextType > ; Subscription ? : SubscriptionResolvers < ContextType > ; } ; export type HelloQueryQueryVariables = Exact < { [ key ] : never ; } > ; export type HelloQueryQuery = { __typename ? : 'Query' ; hello : string ; } ; export const HelloQueryDocument = { kind : 'Document' , definitions : [ { kind : 'OperationDefinition' , operation : 'query' , name : { kind : 'Name' , value : 'HelloQuery' } , selectionSet : { kind : 'SelectionSet' , selections : [ { kind : 'Field' , name : { kind : 'Name' , value : 'hello' } } ] } , } , ] , } as unknown as DocumentNode < HelloQueryQuery , HelloQueryQueryVariables > ; declare module 'graphql-ez' { interface EZResolvers extends Resolvers < import ( 'graphql-ez' ) . EZContext > { } }