Open AlexanderProd opened 1 month ago
@AlexanderProd if you came from 1.0.3, you came from Strapi v3. Are you sure you ment that?
We debug endpoints on the command line, are you sure these calls are returning your data correctly?
I don't know about gatsby-plugin-schema-snapshot
, maybe that clashes? Did you fully clean all caches?
Did you set version: 5
on your config?
I had the same problem, and the solution was to set version: 5
in strapiConfig
.
Describe the bug
I'm using the Strapi v5 version of
gatsby-source-strapi
(#478) withyarn link
.The collection and single Strapi types configured in my
gatsby-config.js
are found but they do not contain any fields. Even though the fields exist and are populated in my Strapi instance. When I usegatsby-source-strapi@1.0.3
the fields on the same types are found.This is the error I'm getting:
The result from the stapi api when fetching the same single type:
The type in the GraphiQL explorer:
To Reproduce
Steps to reproduce the behavior:
gatsby-source-strapi
with the strapi instance.Expected behavior
The Strapi types should contain fields.
System Info
Please provide information about your site via these means as possible:
gatsby info:
The update flag in
gatsby-plugin-schema-snapshot
is set to true.