@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:45.628Z") public class ResolvableField extends Field implements IField
Example:
GraphqlApi api; MappingTemplate dummyRequest; MappingTemplate dummyResponse; ObjectType info = ObjectType.Builder.create("Info") .definition(Map.of( "node", ResolvableField.Builder.create() .returnType(GraphqlType.string()) .args(Map.of( "id", GraphqlType.string())) .dataSource(api.addNoneDataSource("none")) .requestMappingTemplate(dummyRequest) .responseMappingTemplate(dummyResponse) .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
ResolvableField.Builder
(experimental) A fluent builder for
ResolvableField . |
IField.Jsii$Default, IField.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ResolvableField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ResolvableField(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
ResolvableFieldOptions |
getFieldOptions()
(experimental) The options to make this field resolvable.
|
argsToString, directivesToString, directivesToString
awsDate, awsDate, awsDateTime, awsDateTime, awsEmail, awsEmail, awsIpAddress, awsIpAddress, awsJson, awsJson, awsPhone, awsPhone, awsTime, awsTime, awsTimestamp, awsTimestamp, awsUrl, awsUrl, doBoolean, doBoolean, doFloat, doFloat, doInt, doInt, getIntermediateType, getIsList, getIsRequired, getIsRequiredList, getType, id, id, intermediate, intermediate, string, string, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argsToString, directivesToString, directivesToString, getIntermediateType, getIsList, getIsRequired, getIsRequiredList, getType, toString
protected ResolvableField(software.amazon.jsii.JsiiObjectRef objRef)
protected ResolvableField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ResolvableFieldOptions getFieldOptions()
Default: - not a resolvable field
getFieldOptions
in interface IField
getFieldOptions
in class Field