Error: Can only create List of a GraphQLType but got: function GraphQLObjectType(config) , in GraphQL?
问题 I am working on a demo project on GraphQL. But stuck here. I want to send the whole object as result. The object which I want to send is: exports.fakeDatabase = { 1: { id: 1, name: 'Abhay', description:'This is Abhay\'s Database' }, 2: { id: 2, name:'Bankimchandra', description: 'This is Bankimchandra\'s Database' }, 3: { id: 3, name:'chandu', description: 'This is chandu\'s Database' } }; But when I am sending a request to access it I got Error: Error: Can only create List of a GraphQLType