<commit_before>export default {
  Query: {
    products: (_, args, { app, fromMongo }) =>
      app.modules
        .get('core')
        .ProductRepository.findMany()
        .then(c => c.map(fromMongo).toArray()),
  },
  Product: {
    price: product => product.price || 0,
  },
};
<commit_msg>basic example - using fromMongoCursor<commit_after>export default {
  Query: {
    products: async (_, args, { app, fromMongoCursor }) =>
      fromMongoCursor(await app.modules.get('core').ProductRepository.findMany()),
  },
  Product: {
    price: product => product.price || 0,
  },
};

{'fraction_non_alphanumeric': 0.1678082191780822, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 3.0625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7315622', 'n_tokens_mistral': 189, 'n_tokens_neox': 187, 'n_words': 35}