TSchemaDocument.SetTypeResolver Method
Overloads
- TSchemaDocument.SetTypeResolver(string, ITypeResolver)
- TSchemaDocument.SetTypeResolver(string, TTypeResolverFunc)
TSchemaDocument.SetTypeResolver(string, ITypeResolver)
Sets the type resolver for the specified interface or union type.
Remarks
If neither an interface type nor an union type with the specified name exist in the schema, an exception will be raised.
Syntax
Unit: GraphQL.Schema
procedure TSchemaDocument.SetTypeResolver(const AbstractTypeName: string; Resolver: ITypeResolver); overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | AbstractTypeName | string | The name of the interface or union type. |
Resolver | ITypeResolver | The type resolver to be set for the type. |
See also
TSchemaDocument.SetTypeResolver(string, TTypeResolverFunc)
Sets the type resolver for the specified interface or union type.
Remarks
If neither an interface type nor an union type with the specified name exist in the schema, an exception will be raised.
Syntax
Unit: GraphQL.Schema
procedure TSchemaDocument.SetTypeResolver(const AbstractTypeName: string; Func: TTypeResolverFunc); overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | AbstractTypeName | string | The name of the interface or union type. |
Func | TTypeResolverFunc | The anonymous function which will be executed to resolve the type. |