title: GraphQL Error - Error: Can only create List of a GraphQLType but got: [object Object]
body: <p>I am getting following error:</p>
  
  <blockquote>
    <p>Error: Can only create List of a GraphQLType but got: [object Object].</p>
  </blockquote>
  
  <p>But I am passing a GraphQLType.</p>
  
  <p>This is the file triggering the error.</p>
  
  <pre><code>```
  var GraphQL = require('graphql');
  var BotType = require('../types/bot-type');
  var Datastore = require('../../datastores/memory-datastore')
  
  const BotListType = new GraphQL.GraphQLList(BotType);
  
  module.exports = new GraphQL.GraphQLObjectType({
    type: BotListType,
    resolve: function(object) {
      return object.bots.map(Datastore.getBot)
    }
  })
  ```
  </code></pre>
  
  <p>This is the BotType it's complaining about</p>
  
  <pre><code>```
  var GraphQL = require('graphql');
  var RelayQL = require('graphql-relay');
  var Node = require('../node');
  var IntegrationListField = require('../fields/integration-list-field')
  
  const BotType = new GraphQL.GraphQLObjectType({
    name: 'Bot',
    fields: {
      id: RelayQL.globalIdField('Bot'),
      name: { type: GraphQL.GraphQLString },
      integrations: IntegrationListField
    },
    interfaces: [ Node.nodeInterface ]
  });
  
  module.exports = BotType
  
  ```
  </code></pre>