A node that represents the presence of a value. For instance, this could be set as a default value for a field of type OptionTypeNode
.
Attribute | Type | Description |
---|---|---|
kind |
"someValueNode" |
The node discriminator. |
Attribute | Type | Description |
---|---|---|
value |
ValueNode |
The value that is marked as present. |
Helper function that creates a SomeValueNode
object from a value node
const node = someValueNode(numberValueNode(42));