From 4aa82833f65fecabe1d49b36e17b753452d609e9 Mon Sep 17 00:00:00 2001 From: Ashley Taylor Date: Thu, 7 Jul 2022 14:01:29 +1200 Subject: [PATCH] add description to interface --- .../java/com/fleetpin/graphql/builder/EntityProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java b/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java index f3f764a..29d0efe 100644 --- a/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java +++ b/src/main/java/com/fleetpin/graphql/builder/EntityProcessor.java @@ -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); @@ -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()); } }