parser

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EntityType *graphql.Union
View Source
var EnumOrderBy = graphql.NewEnum(
	graphql.EnumConfig{
		Name: "OrderBy",
		Values: graphql.EnumValueConfigMap{
			"asc": &graphql.EnumValueConfig{
				Value: "asc",
			},
			"ascNullsFirst": &graphql.EnumValueConfig{
				Value: "ascNullsFirst",
			},
			"ascNullsLast": &graphql.EnumValueConfig{
				Value: "ascNullsLast",
			},
			"desc": &graphql.EnumValueConfig{
				Value: "desc",
			},
			"descNullsFirst": &graphql.EnumValueConfig{
				Value: "descNullsFirst",
			},
			"descNullsLast": &graphql.EnumValueConfig{
				Value: "descNullsLast",
			},
		},
	},
)

Functions

func EnumType

func EnumType(entity *graph.Enum) *graphql.Enum

func PropertyType

func PropertyType(propType string) graphql.Output

Types

type ModelParser

type ModelParser struct {
	// contains filtered or unexported fields
}

func (*ModelParser) AggregateFields

func (p *ModelParser) AggregateFields(name string, attrs []*graph.Attribute, methods []*domain.Method) graphql.Fields

func (*ModelParser) AssociationType

func (p *ModelParser) AssociationType(association *graph.Association) graphql.Output

func (*ModelParser) AttributeExp

func (p *ModelParser) AttributeExp(column *graph.Attribute) *graphql.InputObjectFieldConfig

func (*ModelParser) AttributeOrderBy

func (p *ModelParser) AttributeOrderBy(column *graph.Attribute) *graphql.Enum

func (*ModelParser) DeleteArgs added in v0.0.6

func (p *ModelParser) DeleteArgs(entity *graph.Entity) graphql.FieldConfigArgument

func (*ModelParser) DeleteByIdArgs added in v0.0.6

func (p *ModelParser) DeleteByIdArgs() graphql.FieldConfigArgument

func (*ModelParser) DistinctOnEnum

func (p *ModelParser) DistinctOnEnum(name string) *graphql.Enum

func (*ModelParser) DistinctOnEnums

func (p *ModelParser) DistinctOnEnums() map[string]*graphql.Enum

func (*ModelParser) EntityListType

func (p *ModelParser) EntityListType(entity *graph.Entity) *graphql.Object

func (*ModelParser) EntityObjects

func (p *ModelParser) EntityObjects() []*graphql.Object

func (*ModelParser) EntityTypes

func (p *ModelParser) EntityTypes() []graphql.Type

func (*ModelParser) EntityeOutputType

func (p *ModelParser) EntityeOutputType(name string) *graphql.Object

func (*ModelParser) EnumComparisonExp

func (p *ModelParser) EnumComparisonExp(attr *graph.Attribute) *graphql.InputObjectFieldConfig

func (*ModelParser) EnumType

func (p *ModelParser) EnumType(name string) *graphql.Enum

func (*ModelParser) GetEntityTypeByInnerId

func (p *ModelParser) GetEntityTypeByInnerId(id uint64) *graphql.Object

func (*ModelParser) HasManyInput

func (p *ModelParser) HasManyInput(name string) *graphql.InputObject

func (*ModelParser) HasOneInput

func (p *ModelParser) HasOneInput(name string) *graphql.InputObject

func (*ModelParser) InputPropertyType

func (p *ModelParser) InputPropertyType(property graph.Propertier) graphql.Type

func (*ModelParser) InterfaceOutputType

func (p *ModelParser) InterfaceOutputType(name string) *graphql.Interface

func (*ModelParser) InterfaceType

func (p *ModelParser) InterfaceType(intf *graph.Interface) *graphql.Interface

func (*ModelParser) MakeFederationSDL added in v0.0.6

func (p *ModelParser) MakeFederationSDL() string

func (*ModelParser) MethodArgs added in v0.0.4

func (p *ModelParser) MethodArgs(methodArgs []meta.ArgMeta) graphql.FieldConfigArgument

func (*ModelParser) MethodType added in v0.0.4

func (p *ModelParser) MethodType(method *meta.MethodMeta) graphql.Output

func (*ModelParser) MutationResponse

func (p *ModelParser) MutationResponse(name string) *graphql.Object

func (*ModelParser) MutationSDL added in v0.0.6

func (p *ModelParser) MutationSDL() (string, string)

func (*ModelParser) ObjectType

func (p *ModelParser) ObjectType(entity *graph.Entity) *graphql.Object

func (*ModelParser) OrderByExp

func (p *ModelParser) OrderByExp(name string) *graphql.InputObject

func (*ModelParser) OutputFields

func (p *ModelParser) OutputFields(attrs []*graph.Attribute) graphql.Fields

func (*ModelParser) OutputType

func (p *ModelParser) OutputType(name string) graphql.Type

func (*ModelParser) ParseModel

func (p *ModelParser) ParseModel(r *entify.Repository)

func (*ModelParser) QueryArgs

func (p *ModelParser) QueryArgs(name string) graphql.FieldConfigArgument

func (*ModelParser) QuerySDL added in v0.0.6

func (p *ModelParser) QuerySDL() (string, string)

func (*ModelParser) ResolveTypeFn added in v0.0.6

func (p *ModelParser) ResolveTypeFn(parm graphql.ResolveTypeParams) *graphql.Object

func (*ModelParser) SaveInput

func (p *ModelParser) SaveInput(name string) *graphql.InputObject

func (*ModelParser) SetArgs added in v0.0.6

func (p *ModelParser) SetArgs(entity *graph.Entity) graphql.FieldConfigArgument

func (*ModelParser) SetInput

func (p *ModelParser) SetInput(name string) *graphql.InputObject

func (*ModelParser) UpsertArgs added in v0.0.6

func (p *ModelParser) UpsertArgs(entity *graph.Entity) graphql.FieldConfigArgument

func (*ModelParser) UpsertOneArgs added in v0.0.6

func (p *ModelParser) UpsertOneArgs(entity *graph.Entity) graphql.FieldConfigArgument

func (*ModelParser) WhereExp

func (p *ModelParser) WhereExp(name string) *graphql.InputObject

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL