Documentation ¶
Index ¶
- Variables
- type Constellation
- type ConstellationConnection
- type ConstellationEdge
- type CreateConstellationInput
- type CreateConstellationPayload
- type CreateConstellationsPayload
- type Galaxy
- type GalaxyConnection
- type GalaxyEdge
- type NewTodo
- type Node
- type PageInfo
- type Planet
- type PlanetConnection
- type PlanetEdge
- type PlanetTypeEnum
- type Star
- type StarConnection
- type StarEdge
- type StellarClassEnum
- type Todo
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var AllPlanetTypeEnum = []PlanetTypeEnum{ PlanetTypeEnumDoublePlanet, PlanetTypeEnumDwarfPlanet, PlanetTypeEnumExoplanet, PlanetTypeEnumExtragalactic, PlanetTypeEnumMajorPlanet, PlanetTypeEnumOuterPlanet, PlanetTypeEnumPulsarPlanet, PlanetTypeEnumRoguePlanet, }
View Source
var AllStellarClassEnum = []StellarClassEnum{ StellarClassEnumClass0, StellarClassEnumClassA, StellarClassEnumClassB, }
Functions ¶
This section is empty.
Types ¶
type Constellation ¶
type Constellation struct { ID string `json:"id"` CreatedAt string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` Name *string `json:"name"` Galaxies *GalaxyConnection `json:"galaxies"` }
func (Constellation) IsNode ¶
func (Constellation) IsNode()
type ConstellationConnection ¶
type ConstellationConnection struct { Nodes []*Constellation `json:"nodes"` Edges []*ConstellationEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type ConstellationEdge ¶
type ConstellationEdge struct { Cursor string `json:"cursor"` Node *Constellation `json:"node"` }
type CreateConstellationInput ¶
type CreateConstellationInput struct {
Name string `json:"name"`
}
type CreateConstellationPayload ¶
type CreateConstellationPayload struct {
Constellation *Constellation `json:"constellation"`
}
type CreateConstellationsPayload ¶
type CreateConstellationsPayload struct {
Constellations []*Constellation `json:"constellations"`
}
type Galaxy ¶
type Galaxy struct { ID string `json:"id"` CreatedAt string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` Name *string `json:"name"` Planets *PlanetConnection `json:"planets"` Stars *StarConnection `json:"stars"` }
type GalaxyConnection ¶
type GalaxyConnection struct { Nodes []*Galaxy `json:"nodes"` Edges []*GalaxyEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type GalaxyEdge ¶
type Planet ¶
type PlanetConnection ¶
type PlanetConnection struct { Nodes []*Planet `json:"nodes"` Edges []*PlanetEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type PlanetEdge ¶
type PlanetTypeEnum ¶
type PlanetTypeEnum string
const ( PlanetTypeEnumDoublePlanet PlanetTypeEnum = "DOUBLE_PLANET" PlanetTypeEnumDwarfPlanet PlanetTypeEnum = "DWARF_PLANET" PlanetTypeEnumExoplanet PlanetTypeEnum = "EXOPLANET" PlanetTypeEnumExtragalactic PlanetTypeEnum = "EXTRAGALACTIC" PlanetTypeEnumMajorPlanet PlanetTypeEnum = "MAJOR_PLANET" PlanetTypeEnumOuterPlanet PlanetTypeEnum = "OUTER_PLANET" PlanetTypeEnumPulsarPlanet PlanetTypeEnum = "PULSAR_PLANET" PlanetTypeEnumRoguePlanet PlanetTypeEnum = "ROGUE_PLANET" )
func (PlanetTypeEnum) IsValid ¶
func (e PlanetTypeEnum) IsValid() bool
func (PlanetTypeEnum) MarshalGQL ¶
func (e PlanetTypeEnum) MarshalGQL(w io.Writer)
func (PlanetTypeEnum) String ¶
func (e PlanetTypeEnum) String() string
func (*PlanetTypeEnum) UnmarshalGQL ¶
func (e *PlanetTypeEnum) UnmarshalGQL(v interface{}) error
type Star ¶
type Star struct { ID string `json:"id"` CreatedAt string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` Name *string `json:"name"` Class *StellarClassEnum `json:"class"` }
type StarConnection ¶
type StellarClassEnum ¶
type StellarClassEnum string
const ( StellarClassEnumClass0 StellarClassEnum = "CLASS_0" StellarClassEnumClassA StellarClassEnum = "CLASS_A" StellarClassEnumClassB StellarClassEnum = "CLASS_B" )
func (StellarClassEnum) IsValid ¶
func (e StellarClassEnum) IsValid() bool
func (StellarClassEnum) MarshalGQL ¶
func (e StellarClassEnum) MarshalGQL(w io.Writer)
func (StellarClassEnum) String ¶
func (e StellarClassEnum) String() string
func (*StellarClassEnum) UnmarshalGQL ¶
func (e *StellarClassEnum) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.