Skip to content

Stitching demo not working  #1

@adamszlag

Description

@adamszlag

I've encountered some issues with stitching in this example(I've recreated all steps 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
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions