Class DeprecatedDefinitionBuilder
java.lang.Object
io.github.besi97.graphql.codegen.model.builders.DeprecatedDefinitionBuilder
Builder of @deprecated annotation definition
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeprecatedDefinitionbuild(GeneratedLanguage generatedLanguage, graphql.language.Directive directive) Get a definition of @deprecated annotation for a specified language.static DeprecatedDefinitionbuild(MappingContext mappingContext, graphql.language.DirectivesContainer<?> directivesContainer) Get a definition of @deprecated based on a given directive
-
Method Details
-
build
public static DeprecatedDefinition build(MappingContext mappingContext, graphql.language.DirectivesContainer<?> directivesContainer) Get a definition of @deprecated based on a given directive- Parameters:
mappingContext- Global mapping contextdirectivesContainer- GraphQL directive container- Returns:
- a definition of a deprecation having reason and annotation
-
build
public static DeprecatedDefinition build(GeneratedLanguage generatedLanguage, graphql.language.Directive directive) Get a definition of @deprecated annotation for a specified language.- Parameters:
generatedLanguage- Language of code generationdirective- GraphQL @deprecated directive- Returns:
- a definition of a deprecation having reason and annotation
-