Hotchocolate Graphql + Syncfusion React Grid (ASP.NET Core + React)

Sample date Updated on Feb 18, 2026
adaptor ej2 graphql grid hotchocolate react syncfusion

This sample demonstrates how to run an ASP.NET Core HotChocolate GraphQL backend together with a React client using the Syncfusion React Grid component to perform CRUD operations seamlessly.

1. Prerequisites

Visual Studio 2022

ASP.NET Core workload required.

Node.js 14 or later

Check:

node --version

2. Install Client-Side Node Modules

  1. Open folder:
    reactapp1.client
    
  2. Run:
    npm install
    

3. Run the Solution from Visual Studio

  1. Open:
    ReactApp1.sln
    
  2. Set ReactApp1.Server as startup project.
  3. Press F5 to run server + client.

The Grid will load data from the GraphQL endpoint:

https://localhost:<port>/graphql

4. Project Structure

Server (ReactApp1.Server)

  • Program.cs: Configures HotChocolate GraphQL server
  • GraphQL/: Contains GraphQL queries, mutations, and types
  • Models/: Data models
  • Controllers/: API controllers

Client (reactapp1.client)

  • src/: React application source code
  • package.json: Node.js dependencies including Syncfusion React Grid
  • vite.config.js: Vite configuration
Up arrow