@GraphQLMutation("updateComplexObjectToReturnMutation") public @GraphQLOut("complexObject") ComplexObject updateComplexObjectToReturnMutation() { ComplexObject complexObject = new ComplexObject(); complexObject.setContent("New content"); complexObject.setReachContent(true); complexObject.setTimestamp(new Date().getTime()); return complexObject; }