Trying MongoDB + Gatsby tutorial - fails to generate pages

Hi,

I have been trying out the tutorial Gatsby and MongoDB: Build a Modern Blog with Gatsby and MongoDB | MongoDB

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?

I’m doing the same tutorial, how do you parse the text from the mongodb document to render with the line breaks (or any other formatting) in gatsby?

Hi Jfy,

Do you have an example of the text you’re trying to render?

A post was split to a new topic: MongoServerSelectionError: getaddrinfo ENOTFOUND