title: How do i create a graphql schema for a self referencing data hierarchy?
body: <p>This doesnt work because the type refers to its self in the routes field definition:</p>
  
  <pre><code>  var routeType = new GraphQLObjectType({
    name: 'MessageRoute',
    fields: {
      name: {
        type: GraphQLString
      },
      routes: {
        type: new GraphQLList(routeType),
        resolve: (route) =&gt; {
          return route.routes;
        }
      }
    }
  });
  </code></pre>
  
  <p>so how do I do it?</p>