Package io.smallrye.graphql.client.core
Interface FragmentReference
- All Superinterfaces:
Buildable,FieldOrFragment
Represents a reference to a named fragment.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FragmentReferencefragmentRef(Fragment fragment) Create a fragment reference by providing a built instance of a named fragment.static FragmentReferencefragmentRef(String name) Create a fragment reference by specifying the name of the target fragment.static FragmentReferencefragmentRefWithDirective(Fragment fragment, Directive... directives) Create a fragment reference by providing a built instance of a named fragment and directives.static FragmentReferencefragmentRefWithDirective(String name, Directive... directives) Create a fragment reference by specifying the name of the target fragment and directives.getName()voidsetDirectives(List<Directive> directives) void
-
Method Details
-
fragmentRef
Create a fragment reference by specifying the name of the target fragment. In the resulting document, this will appear as `...FRAGMENTNAME` -
fragmentRef
Create a fragment reference by providing a built instance of a named fragment. This will actually only use the name of the fragment - in the resulting document, this will appear as `...FRAGMENTNAME` -
fragmentRefWithDirective
Create a fragment reference by specifying the name of the target fragment and directives. In the resulting document, this will appear as `...FRAGMENTNAME @DIRECTIVE` -
fragmentRefWithDirective
Create a fragment reference by providing a built instance of a named fragment and directives. This will actually only use the name of the fragment - in the resulting document, this will appear as `...FRAGMENTNAME @DIRECTIVE` -
getName
String getName() -
setName
-
getDirectives
-
setDirectives
-