How to integrate cockpit with gatsby static query / page query

Hi

im using cockpit as CMS for my project, for frontend iam using gatsby as static site generator,
How do i make a static query to fetch data from cockpit cms.

which plugin should i use and how to make the query

Seems as if indeed there is a plugin for that