GraphQL, Relay and Mongodb (mongoose) how to fetch array
npm i graphql-relay-connection --saveconst {connectionFromPromisedArray} = mongooseConnection;
and instead of connectionFromArray(get(), args)
we can pass Promise: connectionFromPromisedArray(collection.find(), args)
Finally you can fetch array from Promise without tons of code.