Skip to content

Commit 2946073

Browse files
authoredApr 1, 2025··
fix: require immutable flag on entities (#1994)
1 parent c9fe1c4 commit 2946073

File tree

58 files changed

+221
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+221
-69
lines changed
 

‎.changeset/tangy-pants-buy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': minor
3+
---
4+
5+
require immutable flag on entities

‎examples/arweave-blocks-transactions/schema.graphql

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type Block @entity {
1+
type Block @entity(immutable: true) {
22
id: ID!
33

44
timestamp: BigInt!
@@ -22,7 +22,7 @@ type Block @entity {
2222
poa: Poa
2323
}
2424

25-
type Transaction @entity {
25+
type Transaction @entity(immutable: true) {
2626
id: ID!
2727

2828
block: Block!
@@ -39,7 +39,7 @@ type Transaction @entity {
3939
reward: Bytes!
4040
}
4141

42-
type Poa @entity {
42+
type Poa @entity(immutable: true) {
4343
id: ID!
4444

4545
option: String!
@@ -48,7 +48,7 @@ type Poa @entity {
4848
chunk: Bytes!
4949
}
5050

51-
type Tag @entity {
51+
type Tag @entity(immutable: true) {
5252
id: ID!
5353

5454
name: Bytes!

0 commit comments

Comments
 (0)
Please sign in to comment.