gatsby-uc / gatsby-source-strapi

Gatsby source plugin for building websites using Strapi as a data source
MIT License
354 stars 182 forks source link

Unable to see components in GraphQL #311

Closed jasewarner closed 2 years ago

jasewarner commented 2 years ago

I'm struggling to see any components in GraphQL.

How should I go about getting components in GraphQL that are used in single types in Strapi?

Apologies if this is a silly question, but I'm new to Strapi and I can't find much documentation on components in this plugin.

Thanks

remidej commented 2 years ago

It's probably because components work like relations, so you need to populate them. See these links:

Let me know if that doesn't fix it and I'll reopen the issue.