How to use graphql with remix.run

How to use graphql with remix.run


0

I have an endpoint https://localhost:1337/graphql where i query a lot of things from strapi but i am trying to use remix.run (tsx) as. my framework, there are no latest tutorials as to how to integrate the graphql endpoint to the remix loaders so that i can query directly from the graphql endpoint.

export async function loader() {
  const navdata = await fetchData("/api/navbar?populate=*");
  return {
    navres: navdata
  }
};

i have installed and tried multiple libraries such as @apollo/client @graphql-tools/schema @graphql-tools/utils graphql graphql-requests etc. None of them seem to be working for me either the tutorial is outdated or it has some errors if someone has any knowledge as to how to do this please help me resolve this integration issue.


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *