gatsby-source-strapi icon indicating copy to clipboard operation
gatsby-source-strapi copied to clipboard

Generate Gatsby's GraphQL schema based on Model instead of REST API result

Open yagotome opened this issue 5 years ago • 3 comments

Is it possible this plugin generate Gatsby's GraphQL schema based on Model instead of REST API result?

The problem is if there's null fields in the results, the Gatsby's schema is compromised. What if this plugin support an option to fetch from Strapi's GraphQL schema?

yagotome avatar May 18 '20 00:05 yagotome

@yagotome There seems to be more than one issue by using the REST API. See this issue

Jaikant avatar May 19 '20 12:05 Jaikant

@Jaikant good catch! I've also reported similar problem here.

yagotome avatar May 19 '20 15:05 yagotome

I wouldn't say this is so much an issue, but a limitation of using REST in general. It seems that using the GraphQL plugin removes this limitation. I think it's safe to say that Strapi should probably just move to using GraphQL, as none of its users will notice a difference until they hit this limitation. It's all stuff abstracted from developers that aren't working directly on Strapi code.

jblevins1991 avatar Jun 28 '20 00:06 jblevins1991

Thanks for your interest in this project. This plugin is moving into the Gatsby User Collective and this repo will be archived. Please open an issue in that repository, submit a PR if you'd like to see this implemented, or join us on Discord if you have questions!

moonmeister avatar Dec 27 '22 18:12 moonmeister