I'm working on a project that has 2 models: 'News Article' and 'Event'. The project requires a "News a Events" section that lists all News Articles and Events by date.
Rather than combining (and then sorting) the separate results of allDatoCmsEvent and allDatoCMSNewArticle in js I want to know if there is a way to combine the results of both in the graphql query.
I've looked at the Gatsby Node API's, mainly tring to create an abstract scehma type, but so far I have not found anything that works with the dato-cms plugin.
I'm working on a project that has 2 models: 'News Article' and 'Event'. The project requires a "News a Events" section that lists all News Articles and Events by date.
Rather than combining (and then sorting) the separate results of allDatoCmsEvent and allDatoCMSNewArticle in js I want to know if there is a way to combine the results of both in the graphql query.
I've looked at the Gatsby Node API's, mainly tring to create an abstract scehma type, but so far I have not found anything that works with the dato-cms plugin.
Any help is greatly apprciated.