Relay is a great GraphQL client side library made by Facebook. It has a
Node query which allows you to have a universal endpoint for querying all your endpoints in your GraphQL. Let’s check how we do that, we will use
Nexus, you can use the other GraphQL, but I found
Nexus made me really productive.
You can use
graphql-relay package. Then you can stop reading here. But I will use an easier way, which you can adopt for your green field project.