Skip to content

Commit

Permalink
add description to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ashley-taylor committed Jul 7, 2022
1 parent 43f635c commit 4aa8283
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private void addType(TypeMeta meta, boolean input) {

GraphQLInterfaceType.Builder interfaceBuilder = GraphQLInterfaceType.newInterface();
interfaceBuilder.name(typeName);

GraphQLInputObjectType.Builder graphInputType = GraphQLInputObjectType.newInputObject();
if(schemaType == SchemaOption.INPUT) {
graphInputType.name(typeName);
Expand All @@ -148,6 +148,7 @@ private void addType(TypeMeta meta, boolean input) {
if(description != null) {
graphType.description(description.value());
graphInputType.description(description.value());
interfaceBuilder.description(description.value());
}
}

Expand Down

0 comments on commit 4aa8283

Please sign in to comment.