What is the difference between allFile and allMarkdownRemark in gatsby

It always depends on your filesystem and how it is set up. The short answer is that allFile retrieves all kind of files (images, markdowns, JSONs, etc) set in your gatsby-source-filesystem while allMarkdownRemark only fetches the markdown files because a transformer plugin has previously created a specific node to do so. allMarkdownRemark, of course, is more specific and has better performance, … Read more