This is a Gatsby version 2.\*.\* source plugin that feeds the GraphQL tree with Cockpit Headless CMS collections and singletons data. Actually, it supports querying raw texts (and any trivial field types), Markdown, images, galleries, assets, sets, repeaters, layout(-grid)s (currently only without nested images/assets), objects, linked collections and internationalization.
I added some basic config validation and a (hopefully) useful error message. I also added some basic tests. I tried not to introduce any breaking API changes and stay consistent with the current behavior by only throwing errors for configs which do not work anyway.
I also added a hint in the readme for the locales config value, since I had a problem with duplicate collection items.
Hi there!
I added some basic config validation and a (hopefully) useful error message. I also added some basic tests. I tried not to introduce any breaking API changes and stay consistent with the current behavior by only throwing errors for configs which do not work anyway.
I also added a hint in the readme for the
locales
config value, since I had a problem with duplicate collection items.