Skip to content

Files

Latest commit

Apr 17, 2025
4302ee4 · Apr 17, 2025

History

History

nextjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 2, 2022
Mar 21, 2022
Mar 6, 2024
Mar 21, 2022
Mar 21, 2022
Mar 21, 2022
Mar 21, 2022
Mar 21, 2022
Mar 21, 2022
Mar 21, 2022
Apr 17, 2025
Mar 21, 2022

The Graph Client / Next.js

This examples integrates The Graph Client with Next.js.

The example here is using the following tools/concepts:

  • The Graph Client CLI for generating artifacts
  • Client-side Compostion (more than 1 source)
  • The Graph Client Typed SDK for consuming the Graph API in Next.js application
  • next CLI for building the frontend project

Getting Started

To run this example, make sure to install the dependencies in the root of the monorepo, build the client locally, and then run this example:

# In the root directory
$ yarn install
$ yarn build
$ cd examples/nextjs/
$ yarn build-client
$ yarn dev

DevTools

You can also run The Graph Client DevTools by running: yarn graphiql.