aerogear / create-graphql

Command-line utility to build production-ready servers with GraphQL.
MIT License
440 stars 38 forks source link

Update templates to handle ConnectionFromMongoCursor breaking change #95

Closed sibelius closed 7 years ago

sibelius commented 7 years ago

https://github.com/entria/graphql-dataloader-boilerplate/pull/42

before

import ConnectionFromMongoCursor from '../connection/ConnectionFromMongoCursor';

return ConnectionFromMongoCursor.connectionFromMongoCursor(context, users, args, User.load);

after

import connectionFromMongoCursor from './ConnectionFromMongoCursor';

return connectionFromMongoCursor({
      cursor: users,
      context,
      args,
      loader: User.load,
    });