GraphQL Expected Iterable, but did not find one for field xxx.yyy
问题 I'm currently trying GraphQL with NodeJS and I don't know, why this error occurs with the following query: { library{ name, user { name email } } } I am not sure if the type of my resolveLibrary is right, because at any example I had a look at they used new GraphQL.GraphQLList() , but in my case I really want to return a single user object, not an array of users. My code: const GraphQL = require('graphql'); const DB = require('../database/db'); const user = require('./user').type; const