All Projects → adamsoffer → Next Apollo Example

adamsoffer / Next Apollo Example

Next & Apollo Example

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Next Apollo Example

Babel Plugin Import Graphql
Enables import syntax for .graphql and .gql files
Stars: ✭ 284 (-31.23%)
Mutual labels:  graphql, apollo, nextjs
Apollo Server Vercel
⚫ Production-ready Node.js GraphQL server for Vercel Serverless Functions
Stars: ✭ 69 (-83.29%)
Mutual labels:  graphql, apollo, nextjs
Pizzaql
🍕 Modern OSS Order Management System for Pizza Restaurants
Stars: ✭ 631 (+52.78%)
Mutual labels:  graphql, apollo, nextjs
Hackernews React Graphql
Hacker News clone rewritten with universal JavaScript, using React and GraphQL.
Stars: ✭ 4,242 (+927.12%)
Mutual labels:  graphql, apollo, nextjs
Apollo Upload Examples
A full stack demo of file uploads via GraphQL mutations using Apollo Server and apollo-upload-client.
Stars: ✭ 358 (-13.32%)
Mutual labels:  graphql, apollo, nextjs
Brian Lovin Next
My personal site
Stars: ✭ 522 (+26.39%)
Mutual labels:  graphql, apollo, nextjs
Next React Graphql Apollo boostrap
React + GraphQL + Next.js project architecture that I play with right now
Stars: ✭ 59 (-85.71%)
Mutual labels:  graphql, apollo, nextjs
Example Storefront
Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
Stars: ✭ 471 (+14.04%)
Mutual labels:  graphql, apollo, nextjs
Next Apollo Auth
Authentication Boilerplate with Next.js and Apollo GraphQL
Stars: ✭ 159 (-61.5%)
Mutual labels:  graphql, apollo, nextjs
Next Graphql Blog
🖊 A Blog including a server and a client. Server is built with Node, Express & a customized GraphQL-yoga server. Client is built with React, Next js & Apollo client.
Stars: ✭ 152 (-63.2%)
Mutual labels:  graphql, apollo, nextjs
Crypto Grommet
Crypto and equities app
Stars: ✭ 39 (-90.56%)
Mutual labels:  graphql, apollo, nextjs
Next React Graphql Apollo Hooks
React, Apollo, Next.js, GraphQL, Node.js, TypeScript high performance boilerplate with React hooks GraphQL implementation and automatic static type generation
Stars: ✭ 186 (-54.96%)
Mutual labels:  graphql, apollo, nextjs
Next Advanced Apollo Starter
Advanced, but minimalistic Next.js pre-configured starter with focus on DX
Stars: ✭ 131 (-68.28%)
Mutual labels:  graphql, apollo, nextjs
Ran
⚡ RAN! React . GraphQL . Next.js Toolkit ⚡ - SEO-Ready, Production-Ready, SSR, Hot-Reload, CSS-in-JS, Caching, CLI commands and more...
Stars: ✭ 2,128 (+415.25%)
Mutual labels:  graphql, apollo, nextjs
Next Ecommerce
⚡️ Quantum Ecommerce. Made with Next.js | GraphQL | Apollo Server | Apollo Client | SSR
Stars: ✭ 186 (-54.96%)
Mutual labels:  graphql, apollo, nextjs
Workers Graphql Server
🔥Lightning-fast, globally distributed Apollo GraphQL server, deployed at the edge using Cloudflare Workers
Stars: ✭ 255 (-38.26%)
Mutual labels:  graphql, apollo
Scalable React Boilerplate
⭐️ Scalable feature-first React micro-framework made for Udacity Alumni collaborative projects
Stars: ✭ 260 (-37.05%)
Mutual labels:  graphql, apollo
Ssr Sample
A minimum sample of Server-Side-Rendering, Single-Page-Application and Progressive Web App
Stars: ✭ 285 (-30.99%)
Mutual labels:  graphql, apollo
Graphql Deduplicator
A GraphQL response deduplicator. Removes duplicate entities from the GraphQL response.
Stars: ✭ 258 (-37.53%)
Mutual labels:  graphql, apollo
Graphcms Examples
Example projects to help you get started with GraphCMS
Stars: ✭ 295 (-28.57%)
Mutual labels:  graphql, nextjs

Next & Apollo Example Build Status

This example utilizes the next-apollo package which is ideal if you want to tuck away some of the ceremony involved when using Apollo in your Next.js app. It also features my preferred CSS-in-JS solution, Emotion.

Demo

How to use

Install it and run

npm install
npm run dev

Deploy it to the cloud with now (download)

now

The idea behind the example

Apollo is a GraphQL client that allows you to easily query the exact data you need from a GraphQL server. In addition to fetching and mutating data, Apollo analyzes your queries and their results to construct a client-side cache of your data, which is kept up to date as further queries and mutations are run, fetching more results from the server.

In this simple example, we integrate Apollo seamlessly with Next by wrapping our pages inside a higher-order component (HOC). Using the HOC pattern we're able to pass down a central store of query result data created by Apollo into our React component hierarchy defined inside each page of our Next application.

On initial page load, while on the server and inside getInitialProps, we invoke the Apollo method, getDataFromTree. This method returns a promise; at the point in which the promise resolves, our Apollo Client store is completely initialized.

This example relies on Prisma + Nexus for its GraphQL backend.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].