The developer of the GitHub example has updated his code to work with 3rd party StepZen for the combined schema. I shall try that, although bit disappointed to have to use yet another 3rd party tool to build a website. It would be great to get this working locally without 3rd party.
Original GitHub code:
Discussion of the issue:
opened 12:19PM - 13 Jan 22 UTC
I've encountered some issues with stitching in this example(I've recreated all s… teps form video):
1. Error: Unknown type "Strapi_Products". Did you mean "Strapi_Product" in `cmsMetaData: [Strapi_Products]`
2. if you change this to cmsMetaData: [Strapi_Product], the data structure is different , you need query like this to get saleorId :
`query getProducts($sort: [String]) {
products(sort:$sort) {
data {
id
attributes {
saleorId
}
}
}
}`
3.You need to add `channel: "default-channel"` on product query for saleor data
4. I am able to run this without the error so the page loads correctly, but only if there is no stitching (data from Strapi added).
All that time I am able to get the data from Strapi (http://localhost:1337/graphql) endpoint and Stitched(http://localhost:3000/api/graphql). So the endpoints are working, also I am not able to get the data from your query, I am not sure if the structure of Strapi is changed with new versions, or what is causing the problems here.
Do you know how to solve those issues?