Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Trying MongoDB + Gatsby tutorial - fails to generate pages

Hi,

I have been trying out the tutorial Gatsby and MongoDB: https://developer.mongodb.com/how-to/gatsby-modern-blog

Everything works fine until adding the file “gatsby-node.js”. Ideally, upon adding this file, it should generate the pages for 400 odd books from the database, but it isn’t.

There isn’t any error with the code. Am I missing anything?

Any help would be appreciated.

Hi Akhil - do you have a repo I can take a look at to help you further diagnose the issue?