Unable to query modular content in the order it appears in the CMS

Iā€™m trying to build a blog page where the user would be able to add content blocks re-order them as they please. When querying modular content blocks in my project, the same types get grouped together and Iā€™m unable to order them in the same way they appear in the CMS when content was entered.

Hoping to get some help on if thereā€™s a standard way to do this. Iā€™m still new to using GraphQL too, so thereā€™s definitely a gap in my knowledge there.

hello @ofh-datocms blocks in modular content should respect the same ordering you see in your admin interface, without grouping them by type. Are you using GatsbyJS or are you quering our graphql.datocms.com api endpoint directly?

Hi @fabrizio, thanks for replying!

Iā€™m using Gridsome with VueJS with the @gridsome/source-datocms plugin. That plugin only allows me to query the https://site-api.datocms.com api endpoint though; I get an ā€œInvalid Endpointā€ error when I try the https://graphql.datocms.com/.