range

Create an OptionRange from an Option type.

The range shall be empty when the option has no value, and it shall have one item when the option has a value.

Parameters

optionalValue
Type: Option!T

An optional value.

Return Value

Type: OptionRange!T

A range of 0 or 1 values.

Meta