A node that represents a field value in a struct — e.g. age: 42
.
Attribute | Type | Description |
---|---|---|
kind |
"structFieldValueNode" |
The node discriminator. |
name |
CamelCaseString |
The name of the field. |
Attribute | Type | Description |
---|---|---|
value |
ValueNode |
The value of the field. |
Helper function that creates a StructFieldValueNode
object from a field name and a value node.
const node = structFieldValueNode('age', numberValueNode(42));