File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ GraphQLInterfaceType comicCharacter = newInterface()
173173
174174Example: (a snippet from [ here] ( src/test/groovy/graphql/GarfieldSchema.java ) )
175175``` java
176- PetType = GraphQLUnionType . newUnionType()
176+ GraphQLUnionType PetType = newUnionType()
177177 .name(" Pet" )
178178 .possibleType(CatType )
179179 .possibleType(DogType )
Original file line number Diff line number Diff line change 1313import static graphql .schema .GraphQLFieldDefinition .newFieldDefinition ;
1414import static graphql .schema .GraphQLInterfaceType .newInterface ;
1515import static graphql .schema .GraphQLObjectType .newObject ;
16+ import static graphql .schema .GraphQLUnionType .newUnionType ;
1617
1718public class GarfieldSchema {
1819
@@ -149,7 +150,7 @@ public GraphQLObjectType getType(Object object) {
149150 .withInterface (NamedType )
150151 .build ();
151152
152- public static GraphQLUnionType PetType = GraphQLUnionType . newUnionType ()
153+ public static GraphQLUnionType PetType = newUnionType ()
153154 .name ("Pet" )
154155 .possibleType (CatType )
155156 .possibleType (DogType )
You can’t perform that action at this time.
0 commit comments