Documentation ¶
Index ¶
- Constants
- func CompareEnums(l1, l2 []*Enum) ([]change.Change, error)
- func EnumEqual(e1, e2 *Enum) bool
- func EnumsEqual(l1, l2 []*Enum) bool
- func GQLEnumEqual(e1, e2 *GQLEnum) bool
- func GQLEnumsEqual(l1, l2 []*GQLEnum) bool
- func GetEnums(input *Input) (*Enum, *GQLEnum)
- func GetTSEnumNameForVal(val string) string
- func GetTSEnumNameForValInfo(val string) (string, bool)
- type Data
- type Enum
- type GQLEnum
- type Input
Constants ¶
View Source
const JS_MIN_SAFE_INT = -9007199254740991
min int. weird to have enum with unknown value
Variables ¶
This section is empty.
Functions ¶
func CompareEnums ¶ added in v0.0.38
this is different from compareEnums in internal/schema/compare_schema.go...
func EnumsEqual ¶ added in v0.0.38
func GQLEnumEqual ¶ added in v0.0.38
func GQLEnumsEqual ¶ added in v0.0.38
func GetTSEnumNameForVal ¶
func GetTSEnumNameForValInfo ¶ added in v0.1.0
Types ¶
type Enum ¶
type Enum struct { Name string Values []*Data DeprecatedValues []*Data Imported bool // Imported enum that's not in this file DisableUnknownType bool // contains filtered or unexported fields }
func (*Enum) GetConvertFunctionInfo ¶ added in v0.1.0
func (c *Enum) GetConvertFunctionInfo() *convertFunctionInfo
func (*Enum) GetEnumValues ¶ added in v0.1.0
func (c *Enum) GetEnumValues() []interface{}
type GQLEnum ¶
type GQLEnum struct { Name string // Name is the name of the enum Type string // type of the enum e.g. nullable or not Values []*Data DeprecatedValues []*Data }
func (GQLEnum) GetGraphQLNames ¶ added in v0.0.33
func (GQLEnum) GetGraphQLType ¶ added in v0.1.0
type Input ¶ added in v0.0.29
type Input struct { TSName string GQLName string GQLType string Values []string EnumMap map[string]string IntEnumMap map[string]int DeprecatedIntEnumMap map[string]int DisableUnknownType bool }
func NewInputFromEnumType ¶ added in v0.1.0
func NewInputFromEnumType(enumType enttype.EnumeratedType, fkey bool) (*Input, error)
Click to show internal directories.
Click to hide internal directories.