Documentation ¶
Index ¶
- type Enumeration
- type Field
- func (f *Field) GetType(field *descriptorpb.FieldDescriptorProto)
- func (f *Field) IsOptional(field *descriptorpb.FieldDescriptorProto)
- func (f *Field) IsRepeated(field *descriptorpb.FieldDescriptorProto)
- func (f *Field) IsRequired(field *descriptorpb.FieldDescriptorProto)
- func (p *Field) Print(msg ...string)
- type GraphQLType
- type InputType
- type Mutation
- type ObjectType
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enumeration ¶
type Field ¶
type Field struct { Name *string Type *GraphQLType TypeName *string Optional *bool Repeated *bool }
Field represents a field inside a an object type
func (*Field) GetType ¶
func (f *Field) GetType(field *descriptorpb.FieldDescriptorProto)
GetType obtains the type of field
func (*Field) IsOptional ¶
func (f *Field) IsOptional(field *descriptorpb.FieldDescriptorProto)
Check if the field is optional
func (*Field) IsRepeated ¶
func (f *Field) IsRepeated(field *descriptorpb.FieldDescriptorProto)
Check if the field is repeated
func (*Field) IsRequired ¶
func (f *Field) IsRequired(field *descriptorpb.FieldDescriptorProto)
Checks if the field is required
type GraphQLType ¶
type GraphQLType string
GraphQLType represents a GraphQL type
const ( Int GraphQLType = "Int" Float GraphQLType = "Float" Boolean GraphQLType = "Boolean" String GraphQLType = "String" Object GraphQLType = "type" Input GraphQLType = "input" Enum GraphQLType = "enum" Unknown GraphQLType = "Unknown" )
func (*GraphQLType) String ¶
func (s *GraphQLType) String() string
String returns the actual string value of the GraphQLType type
type Mutation ¶
type Mutation struct { Name *string Input *InputType Payload *ObjectType Target *string }
Represents GraphQL Mutation type
type ObjectType ¶
type ObjectType struct { Fields []*Field Name *string Nested []*ObjectType Enums []*Enumeration }
Click to show internal directories.
Click to hide internal directories.