Skip to content

Commit c54827c

Browse files
idalithbbenface
andauthored
Update website/pages/en/developing/creating-a-subgraph.mdx
Co-authored-by: Benoît Rouleau <[email protected]>
1 parent 77f3547 commit c54827c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/pages/en/developing/creating-a-subgraph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ Before defining entities, it is important to take a step back and think about ho
423423

424424
- All queries will be made against the data model defined in the subgraph schema and the entities indexed by the subgraph. As a result, it is good to define the subgraph schema in a way that matches the needs of your dapp.
425425
- It may be useful to imagine entities as "objects containing data", rather than as events or functions.
426-
- You define entity types in `schema.graphql`, and Graph Node will generate top level fields for querying single instances and collections of that entity type.
426+
- You define entity types in `schema.graphql`, and Graph Node will generate top-level fields for querying single instances and collections of that entity type.
427427
- Each type that should be an entity is required to be annotated with an `@entity` directive.
428428
- By default, entities are mutable, meaning that mappings can load existing entities, modify them and store a new version of that entity.
429429
- Mutability comes at a price, so for entity types that will never be modified, such as those containing data extracted verbatim from the chain, it is recommended to mark them as immutable with `@entity(immutable: true)`.

0 commit comments

Comments
 (0)