sdk
Index
Namespaces
Enumerations
ExtensionVersion
Enumeration Members
Enumeration Member | Value |
---|---|
|
|
Classes
Extension
Constructors
new Extension()
new Extension():
Extension
Returns
Properties
Property | Type | Default value |
---|---|---|
|
|
Methods
build()
build(
module
,mapper
):void
Parameters
Parameter | Type |
---|---|
| |
|
Returns
void
getModuleExtensions()
getModuleExtensions():
object
Returns
object
getResolverExtensions()
getResolverExtensions<
Result
,Root
,Context
,Args
>(module
,type
,field
):object
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
Returns
object
getSubscriptionExtensions()
getSubscriptionExtensions<
Root
,Context
,Args
>(module
,field
):object
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
object
getSubscriptionResolveExtensions()
getSubscriptionResolveExtensions<
Result
,Root
,Context
,Args
>(module
,field
):object
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
object
getSubscriptionSubscribeExtensions()
getSubscriptionSubscribeExtensions<
Iterator
,Root
,Context
,Args
>(module
,field
):object
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
object
getTransformers()
getTransformers():
SchemaTransformer
[]
Returns
getTypeExtensions()
getTypeExtensions<
Result
,Context
>(module
,type
):object
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
| |
|
|
Returns
object
ModuleBuilder
Constructors
new ModuleBuilder()
new ModuleBuilder(
id
,dirname
,hashes
,typedef
,extensions
):ModuleBuilder
Parameters
Parameter | Type |
---|---|
|
|
|
|
| |
|
|
|
Returns
Properties
Property | Modifier | Type | Default value |
---|---|---|---|
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
| |
|
|
|
|
Methods
build()
build():
object
Returns
object
Name | Type |
---|---|
resolvers | IResolvers |
transform | (schema ) => GraphQLSchema |
typedef | DocumentNode |
createMiddlewareBuilder()
createMiddlewareBuilder<
Result
,Root
,Context
,Args
>(type
,field
): (middleware
) =>void
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Function
Parameters
Parameter | Type |
---|---|
|
|
Returns
void
createModuleMethods()
createModuleMethods<
Context
>():ModuleExtensions
&object
Type Parameters
Type Parameter |
---|
|
Returns
ModuleExtensions
& object
createResolverBuilder()
createResolverBuilder<
Result
,Root
,Context
,Args
>(type
,field
): (resolver
) =>void
&ResolverExtensions
<Result
,Root
,Context
,Args
> &object
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
(resolver
) => void
& ResolverExtensions
<Result
, Root
, Context
, Args
> & object
createResolveType()
createResolveType<
Result
,Value
,Context
>(type
): (resolver
) =>void
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
Function
Parameters
Parameter | Type |
---|---|
|
|
Returns
void
createScalarBuilder()
createScalarBuilder(
scalar
): (resolver
) =>void
Parameters
Parameter | Type |
---|---|
|
|
Returns
Function
Parameters
Parameter | Type |
---|---|
|
Returns
void
createSubscriptionBuilder()
createSubscriptionBuilder<
Result
,Root
,Context
,Args
>(field
): <Payload
>(subscription
) =>void
&object
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
<Payload
>(subscription
) => void
& object
createSubscriptionMethods()
createSubscriptionMethods<
Root
,Context
>():TypeExtensions
<Root
,Context
> &object
&object
Type Parameters
Type Parameter |
---|
|
|
Returns
TypeExtensions
<Root
, Context
> & object
& object
createTypeMethods()
createTypeMethods<
Root
,Context
>(type
):TypeExtensions
<Root
,Context
> &object
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
TypeExtensions
<Root
, Context
> & object
ResolverMapper
Constructors
new ResolverMapper()
new ResolverMapper():
ResolverMapper
Returns
Properties
Property | Modifier | Type | Default value |
---|---|---|---|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
Methods
addMiddleware()
addMiddleware<
Result
,Root
,Context
,Args
>(type
,field
,middleware
):void
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
void
addMiddlewareToMap()
protected
addMiddlewareToMap<Result
,Root
,Context
,Args
>(map
,type
,field
,middleware
):void
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
| |
|
|
|
|
|
|
Returns
void
compose()
compose():
IResolvers
Returns
IResolvers
getTypeFields()
getTypeFields(
type
):string
[]
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
[]
getTypes()
getTypes():
string
[]
Returns
string
[]
prependMiddleware()
prependMiddleware<
Result
,Root
,Context
,Args
>(type
,field
,middleware
):void
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
void
registerTypeField()
registerTypeField(
type
,field
):void
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
void
setDefaultFieldResolver()
setDefaultFieldResolver(
type
,field
):void
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
void
setResolver()
setResolver<
Result
,Root
,Context
,Args
>(type
,field
,resolver
):void
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
void
setScalar()
setScalar(
scalar
,resolver
):void
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
void
setSubscription()
setSubscription<
Payload
,Result
,Root
,Context
,Args
>(field
,resolver
):void
Type Parameters
Type Parameter |
---|
|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
void
setTypenameResolver()
setTypenameResolver<
Result
,Value
,Context
>(type
,resolver
):void
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
void
Interfaces
Module<T>
Type Parameters
Type Parameter |
---|
|
Properties
Property | Type |
---|---|
|
( |
|
|
| |
|
|
|
|
Type Aliases
ExtensionFactory()<E>
ExtensionFactory<
E
>: () =>E
Type Parameters
Type Parameter |
---|
|
Returns
E
FieldResolvers
FieldResolvers:
Record
<string
,NativeResolver
> &object
Type declaration
Name | Type |
---|---|
|
MiddlewareMap
MiddlewareMap:
Record
<string
,NativeMiddleware
[] |undefined
>
NativeMiddleware()<Result, Root, Context, Args>
NativeMiddleware<
Result
,Root
,Context
,Args
>: (next
) =>GraphQLFieldResolver
<Root
,Context
,Args
,Result
|PromiseLike
<Result
>>
Type Parameters
Type Parameter | Default type |
---|---|
|
|
|
|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
GraphQLFieldResolver
<Root
, Context
, Args
, Result
| PromiseLike
<Result
>>
NativeResolver<Result, Root, Context, Args>
NativeResolver<
Result
,Root
,Context
,Args
>:GraphQLFieldResolver
<Root
,Context
,Args
,Result
>
Type Parameters
Type Parameter | Default type |
---|---|
|
|
|
|
|
|
|
|
NativeSubscription<Payload, Result, Root, Context, Args>
NativeSubscription<
Payload
,Result
,Root
,Context
,Args
>:object
Type Parameters
Type Parameter | Default type |
---|---|
|
|
|
|
|
|
|
|
|
|
Type declaration
Name | Type |
---|---|
|
|
|
|
NativeSubscriptionSubscribe()<Payload, Root, Context, Args>
NativeSubscriptionSubscribe<
Payload
,Root
,Context
,Args
>: (source
,args
,context
,info
) =>AsyncIterator
<Payload
> |Promise
<AsyncIterator
<Payload
>>
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
AsyncIterator
<Payload
> | Promise
<AsyncIterator
<Payload
>>
NativeTypeResolver<Result, Value, Context>
NativeTypeResolver<
Result
,Value
,Context
>:GraphQLTypeResolver
<Value
,Context
>
Type Parameters
Type Parameter | Default type |
---|---|
|
|
|
|
|
|
ResolversMap
ResolversMap:
object
&SubscriptionsResolvers
ScalarsMap
ScalarsMap:
Record
<string
,ScalarResolver
|undefined
>
SchemaTransformer()
SchemaTransformer: (
schema
) =>GraphQLSchema
Parameters
Parameter | Type |
---|---|
|
|
Returns
GraphQLSchema
SubscriptionsResolvers
SubscriptionsResolvers:
object
Type declaration
Name | Type |
---|---|
|
|
TypeHash
TypeHash:
object
Type declaration
Name | Type |
---|---|
|
|
|
|
TypeHashMap
TypeHashMap:
Record
<string
,TypeHash
|undefined
>
Functions
addValidationToSchema()
addValidationToSchema(
schema
):GraphQLSchema
Parameters
Parameter | Type |
---|---|
|
|
Returns
GraphQLSchema
createMiddlewareAdapter()
createMiddlewareAdapter<
Result
,Root
,Context
,Args
>(middleware
):NativeMiddleware
<Result
,Root
,Context
,Args
>
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
NativeMiddleware
<Result
, Root
, Context
, Args
>
createModuleManager()
createModuleManager<
T
>(moduleMetadata
,extensions
?):Omit
<T
,"$builder"
>
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
Omit
<T
, "$builder"
>
createObjectLens()
createObjectLens<
T
>(input
,path
):object
A lens to get and set values in an object, that fails silently if the path does not exist.
Type Parameters
Type Parameter | Default type |
---|---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
( |
Returns
object
Name | Type |
---|---|
get | () => null | T |
set | (value ) => boolean |
createResolverAdapter()
createResolverAdapter<
Result
,Root
,Context
,Args
>(resolver
):NativeResolver
<Result
|PromiseLike
<Result
>,Root
,Context
,Args
>
Type Parameters
Type Parameter |
---|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
NativeResolver
<Result
| PromiseLike
<Result
>, Root
, Context
, Args
>
createSingletonModule()
createSingletonModule<
T
>(create
): () =>T
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
() => |
Returns
Function
Returns
T
createSubscriptionAdapter()
createSubscriptionAdapter<
Payload
,Result
,Root
,Context
,Args
>(subscription
):NativeSubscription
<Payload
,Result
,Root
,Context
,Args
>
Type Parameters
Type Parameter |
---|
|
|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
NativeSubscription
<Payload
, Result
, Root
, Context
, Args
>
createTypeResolverAdapter()
createTypeResolverAdapter<
Result
,Value
,Context
>(resolver
):NativeTypeResolver
<Result
,Value
,Context
>
Type Parameters
Type Parameter |
---|
|
|
|
Parameters
Parameter | Type |
---|---|
|
|
Returns
NativeTypeResolver
<Result
, Value
, Context
>
extendFunction()
extendFunction<
B
,M
>(fn
,ext
):B
&M
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
B
& M
getModuleBuilder()
getModuleBuilder(
module
):ModuleBuilder
Parameters
Parameter | Type |
---|---|
|
|
Returns
mergeExtensions()
mergeExtensions<
T
,K
>(items
,callback
):Record
<string
,unknown
>
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
( |
Returns
Record
<string
, unknown
>
mergeMiddlewareMaps()
mergeMiddlewareMaps(
target
,source
):MiddlewareMap
Parameters
Parameter | Type |
---|---|
| |
|
Returns
nameFunction()
nameFunction(
fn
,name
):void
Parameters
Parameter | Type |
---|---|
|
(... |
|
|
Returns
void
resolveExtensions()
resolveExtensions<
T
>(list
):T
[]
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
() => |
Returns
T
[]
transformSchema()
transformSchema(
schema
,transformers
):GraphQLSchema
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
GraphQLSchema
withExtensions()
withExtensions<
Core
,Ext
>(core
,ext
):Ext
&Core
Type Parameters
Type Parameter |
---|
|
|
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Ext
& Core