Documentation
¶
Index ¶
Constants ¶
View Source
const ( GraphQLString = "String" GraphQLInt = "Int" GraphQLFloat = "Float" GraphQLBoolean = "Boolean" GraphQLDateTime = "DateTime" GraphQLUUID = "UUID" GraphQLInt64 = "Int64" )
Mapping constants per spec 4.1.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphQLType ¶
type GraphQLType struct {
Name string
Kind TypeKind
Fields []Field
Description string
EnumValues []string
}
GraphQLType represents a generated GraphQL type.
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Mapper converts OpenAPI schemas to GraphQL types.
func (*Mapper) MapSchemas ¶
func (m *Mapper) MapSchemas(schemas map[string]*parser.SchemaInfo) (map[string]*GraphQLType, error)
MapSchemas converts all schemas to GraphQL types.
Click to show internal directories.
Click to hide internal directories.