|
Given an entity defined like so: type Batch @entity {
id: String!
hash: Bytes!
timestamp: BigInt!
batcher: Batcher
size: BigInt!
streams: [Stream!]! @derivedFrom(field: "batch")
}Is it possible to mark it as immutable if I only do The type Stream @entity {
batch: Batch!
} |
Answered by
PaulRBerg
May 12, 2025
Replies: 2 comments
|
For context here, derived fields are virtual and are build at runtime, it's not an actual field in the db that gets updated. Basically the graph-node dynamically fetches all derived entities from the DB that have the specified derived_from field equal to the ID of the "parent" Entity |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

The answer is yes — it is possible to mark an entity as
immutable: truewhen it contains a field uses the@derivedFromdirective: