Ah I see...thank you for the detailed explanation.
Actually, I’m new to Gatsby as well so I’m still trying to wrap my head around how it works.
In my current Gatsby project with no CMS whatsoever, I can still query for posts that are stored locally within my project. There is no system per say that manages the content; my job is to just write things in Markdown and put the files in a posts directory or something like that.
But with Cosmic JS (or other CMS), I can manage my content in a platform that is separate from my Gatsby project. Then, I can just fetch (or transform) the needed content with the Cosmic JS API.
Something I like here is if I want to switch from Gatsby, I can just switch and just fetch things as needed with the Cosmic JS API instead of migrating all my project-stored content into the new website. The website and its content to display are not coupled together (which I guess is where the ‘headless’ term comes from).
At least, that’s my current limited understanding.
Wan
CosmicJS looks interesting. I normally use Gatsby for blog-like sites and I’m not sure how Cosmic JS fits within that framework.