Skip to main content

vspec

Annotation directive for Vspec mapping information.

directive @vspec(
element: VspecElement
fqn: String
originalName: String
) on
| OBJECT
| FIELD_DEFINITION
| ENUM
| ENUM_VALUE

Arguments

vspec.element ● VspecElement enum

The element of the Vspec language to which the item in the GraphQL schema maps.

vspec.fqn ● String scalar

The Fully Qualified Name (FQN) of the related element in Vspec (aka., path). Example: Vehicle.Cabin.Door.Window.position

vspec.originalName ● String scalar

Original name before sanitization for GraphQL compliance (e.g. for enum values with spaces or special characters).