Class ResolvableField

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IField, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.568Z") @Stability(Experimental) public class ResolvableField extends Field implements IField
(experimental) Resolvable Fields build upon Graphql Types and provide fields that can resolve into operations on a data source.

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();
 
  • Constructor Details

    • ResolvableField

      protected ResolvableField(software.amazon.jsii.JsiiObjectRef objRef)
    • ResolvableField

      protected ResolvableField(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ResolvableField

      @Stability(Experimental) public ResolvableField(@NotNull ResolvableFieldOptions options)
      Parameters:
      options - This parameter is required.
  • Method Details