don’t capitalize collection name

This commit is contained in:
SachaG 2017-04-25 12:56:48 +09:00
parent 6693768e6e
commit f4dc181d60

View file

@ -120,7 +120,7 @@ export const createCollection = options => {
// add collection to resolver context
const context = {};
context[Utils.capitalize(collectionName)] = collection;
context[collectionName] = collection;
GraphQLSchema.addToContext(context);
if (generateGraphQLSchema){