Skip to content

Commit ff23e78

Browse files
Rewrite beginning
1 parent e7e724d commit ff23e78

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

website/src/pages/en/subgraphs/querying/graphql-api.mdx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@
22
title: GraphQL API
33
---
44

5-
Learn about the GraphQL Query API used in The Graph.
5+
Explore the GraphQL Query API for interacting with Subgraphs on The Graph Network.
6+
7+
## Introduction
8+
9+
GraphQL serves as the query language for retrieving data from Subgraphs. This reference covers the syntax, parameters, and features available for querying Subgraph data. For foundational concepts, see [Subgraph Development](/subgraphs/developing/introduction/) and [Creating a Subgraph](/developing/creating-a-subgraph/).
10+
11+
## Core Concepts
12+
13+
### Entities
14+
- **Definition**: Types annotated with `@entity` in your schema represent queryable data objects.
15+
- **Structure**: Each entity requires an `id: ID!` field as its primary identifier.
16+
17+
### Schema
18+
- **Role**: Defines the data structure and relationships via GraphQL's Interface Definition Language (IDL).
19+
- **Query Type**: Auto-generated from your Subgraph schema. Supports only read operations (`queries`).
20+
621

722
## What is GraphQL?
823

0 commit comments

Comments
 (0)