From cedc123c18918d8c090543a4236ee344d2dbffeb Mon Sep 17 00:00:00 2001 From: Nick Siderakis Date: Thu, 27 Dec 2018 16:31:43 -0500 Subject: [PATCH] Adding getInputTypeReference to SchemaModule --- .../java/com/google/api/graphql/rejoiner/SchemaModule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rejoiner/src/main/java/com/google/api/graphql/rejoiner/SchemaModule.java b/rejoiner/src/main/java/com/google/api/graphql/rejoiner/SchemaModule.java index ea5471f..11eebfd 100644 --- a/rejoiner/src/main/java/com/google/api/graphql/rejoiner/SchemaModule.java +++ b/rejoiner/src/main/java/com/google/api/graphql/rejoiner/SchemaModule.java @@ -76,6 +76,11 @@ protected final GraphQLOutputType getTypeReference(Descriptor descriptor) { referencedDescriptors.add(descriptor); return ProtoToGql.getReference(descriptor); } + + protected final GraphQLTypeReference getInputTypeReference(Descriptor descriptor) { + referencedDescriptors.add(descriptor); + return new GraphQLTypeReference(GqlInputConverter.getReferenceName(descriptor)); + } protected ImmutableList extraMutations() { return ImmutableList.of();