title: Transforming a java object into a GraphQL object in order to return a response
body: <p>I'm using the GraphQL Java library in a project and I'm trying to return the desired result in a custom DataFetcher. How exactly do I construct the response object? As far as I know, I'm not expected to just write the response string in the format. There should be a better way to assign values to the requested fields.</p>
  
  <pre><code>public Object get(DataFetchingEnvironment environment) {
      Integer id = environment.getArgument("id");
      //Process information and get results
  
      //What should the return object be?                             
      return result;
  }
  </code></pre>