Git Product home page Git Product logo

Comments (4)

junaid33 avatar junaid33 commented on July 18, 2024 1

Yes I looked into schema stitching, but I will look for another solution. Thank you for your help.

from next-with-apollo.

lfades avatar lfades commented on July 18, 2024

I don't think that it's recommended to have multiple Apollo Clients, what's your use case and why do you need multiple clients ?, - There may be a solution but it will not look good.

from next-with-apollo.

junaid33 avatar junaid33 commented on July 18, 2024

Yes we are connecting with Shopify's GraphQL API. Shopify has a package to mount the GraphQL client side (localhost:3000/graphql). Currently, we are calling the Shopify API on our graphQL server so only 1 client is used, but we would like to allow users to access the Shopify API without the backend if they choose to do so.

from next-with-apollo.

lfades avatar lfades commented on July 18, 2024

Okay, but do you understand that Apollo Devtools may not work, you will have multiple caches, and also that SSR will be much harder ? specially because you'll need to specify the Apollo client to use per query (And I'm not sure if SSR will work for that).

A better solution can be to merge your schema with Shopify's one using schema stitching, one of the principles of GraphQL is to have one single source of truth, so it does make more sense.

from next-with-apollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.