ArboreumDev / credit-union-frontend

Frontend in Next.js + Typescript + GraphQL
https://frontend-two-sandy.vercel.app
1 stars 0 forks source link

Add client side gql queries and API endpoint for graphql #22

Closed gparuthi closed 4 years ago

gparuthi commented 4 years ago
  1. Add client side graphql query example. Follows this example. In the current example, first rendering is done on server-side. Subsequent ones are done on client side. For simple stuff, e.g. when static content is generated and no modifications are done by the user, only server-side is preferred (that is the prior code). For dynamic stuff, client side is needed.

  2. Adds API endpoint that acts as a proxy between Hasura and client

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click on the icon next to each commit.

gparuthi commented 4 years ago

I guess I will understand the bigger picture if I see it being used in another context.

Yes things will make a lot more sense when we actually use this code for funtionality.