Versions in this module Expand all Collapse all v0 v0.0.2 Apr 18, 2024 Changes in this version + var AllXgenResourceActionType = []XgenResourceActionType + var AllXgenResourceListActionType = []XgenResourceListActionType + var AllXgenSortDirection = []XgenSortDirection + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type Action struct + Action XgenResourceActionType + Resource string + Route *string + SchemaFieldName *string + type ActionAnnotationSingle struct + Name *string + Value *Action + type ActionField struct + Description *string + Label *string + MapTo []string + type ComplexityRoot struct + Action struct{ ... } + ActionAnnotationSingle struct{ ... } + ActionField struct{ ... } + Field struct{ ... } + ListAction struct{ ... } + ListActionAnnotationSingle struct{ ... } + Query struct{ ... } + Resource struct{ ... } + ResourceAnnotationSingle struct{ ... } + XgenAnnotationMap struct{ ... } + XgenCursorPaginationInputXgenDef struct{ ... } + XgenFieldDef struct{ ... } + XgenIntrospection struct{ ... } + XgenObjectDefinition struct{ ... } + XgenObjectField struct{ ... } + XgenObjectMap struct{ ... } + XgenPaginationInputXgenDef struct{ ... } + XgenResourceActionTypeXgenDef struct{ ... } + XgenResourceDbConfigInputXgenDef struct{ ... } + XgenResourceFieldDbConfigInputXgenDef struct{ ... } + XgenResourceListActionTypeXgenDef struct{ ... } + XgenSort struct{ ... } + XgenSortDirectionXgenDef struct{ ... } + XgenSortInputXgenDef struct{ ... } + XgenSortResourceConfig struct{ ... } + XgenSortResourceConfigInputXgenDef struct{ ... } + XgenSortResourceConfigXgenDef struct{ ... } + XgenSortXgenDef struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type DirectiveRoot struct + Action func(ctx context.Context, obj interface{}, next graphql.Resolver, resource string, ...) (res interface{}, err error) + ActionField func(ctx context.Context, obj interface{}, next graphql.Resolver, label *string, ...) (res interface{}, err error) + ExcludeArgumentFromType func(ctx context.Context, obj interface{}, next graphql.Resolver, exclude *bool) (res interface{}, err error) + Field func(ctx context.Context, obj interface{}, next graphql.Resolver, label *string, ...) (res interface{}, err error) + ListAction func(ctx context.Context, obj interface{}, next graphql.Resolver, resource string, ...) (res interface{}, err error) + Resource func(ctx context.Context, obj interface{}, next graphql.Resolver, name string, ...) (res interface{}, err error) + ToObjectType func(ctx context.Context, obj interface{}, next graphql.Resolver, typeArg string) (res interface{}, err error) + type Field struct + Description *string + Label *string + type ListAction struct + Action XgenResourceListActionType + Pagination *bool + Resource string + Route *string + SchemaFieldName *string + Sort *XgenSortResourceConfig + type ListActionAnnotationSingle struct + Name *string + Value *ListAction + type QueryResolver interface + XgenIntrospection func(ctx context.Context) (*XgenIntrospection, error) + type ResolverRoot interface + Query func() QueryResolver + type Resource struct + Name string + Primary *bool + Route *string + type ResourceAnnotationSingle struct + Name *string + Value *Resource + type XgenAnnotationMap struct + Action []*ActionAnnotationSingle + ListAction []*ListActionAnnotationSingle + Resource []*ResourceAnnotationSingle + type XgenCursorPaginationInput struct + After *string + Before *string + First int + Last int + type XgenCursorPaginationInputXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenFieldDef struct + ActionField *ActionField + Field *Field + type XgenIntrospection struct + Annotation *XgenAnnotationMap + Object *XgenObjectMap + func XgenIntrospectionValues() (*XgenIntrospection, error) + type XgenObjectDefinition struct + Action *Action + ListAction *ListAction + Resource *Resource + type XgenObjectField struct + Definition *XgenFieldDef + Name *string + type XgenObjectMap struct + XgenCursorPaginationInput *XgenCursorPaginationInputXgenDef + XgenPaginationInput *XgenPaginationInputXgenDef + XgenResourceActionType *XgenResourceActionTypeXgenDef + XgenResourceDbConfigInput *XgenResourceDbConfigInputXgenDef + XgenResourceFieldDbConfigInput *XgenResourceFieldDbConfigInputXgenDef + XgenResourceListActionType *XgenResourceListActionTypeXgenDef + XgenSort *XgenSortXgenDef + XgenSortDirection *XgenSortDirectionXgenDef + XgenSortInput *XgenSortInputXgenDef + XgenSortResourceConfig *XgenSortResourceConfigXgenDef + XgenSortResourceConfigInput *XgenSortResourceConfigInputXgenDef + type XgenPaginationInput struct + Page int + Size int + type XgenPaginationInputXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenResourceActionType string + const XgenResourceActionTypeCreateMutation + const XgenResourceActionTypeDeleteMutation + const XgenResourceActionTypeReadQuery + const XgenResourceActionTypeUpdateMutation + func (e *XgenResourceActionType) UnmarshalGQL(v interface{}) error + func (e XgenResourceActionType) IsValid() bool + func (e XgenResourceActionType) MarshalGQL(w io.Writer) + func (e XgenResourceActionType) String() string + type XgenResourceActionTypeXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenResourceDbConfigInput struct + Table *string + type XgenResourceDbConfigInputXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenResourceFieldDbConfigInput struct + AutoIncrement *bool + AutoIncrementIncrement *int + Column *string + Index *bool + NotNull *bool + Precision *int + PrimaryKey *bool + Scale *int + Size *int + Type *string + Unique *bool + UniqueIndex *bool + type XgenResourceFieldDbConfigInputXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenResourceListActionType string + const XgenResourceListActionTypeBatchDeleteMutation + const XgenResourceListActionTypeBrowseQuery + func (e *XgenResourceListActionType) UnmarshalGQL(v interface{}) error + func (e XgenResourceListActionType) IsValid() bool + func (e XgenResourceListActionType) MarshalGQL(w io.Writer) + func (e XgenResourceListActionType) String() string + type XgenResourceListActionTypeXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenSort struct + By string + Direction *XgenSortDirection + type XgenSortDirection string + const XgenSortDirectionAsc + const XgenSortDirectionDesc + func (e *XgenSortDirection) UnmarshalGQL(v interface{}) error + func (e XgenSortDirection) IsValid() bool + func (e XgenSortDirection) MarshalGQL(w io.Writer) + func (e XgenSortDirection) String() string + type XgenSortDirectionXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenSortInput struct + By string + Direction *XgenSortDirection + type XgenSortInputXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenSortResourceConfig struct + Default []*XgenSort + Disabled *bool + type XgenSortResourceConfigInput struct + Default []*XgenSortInput + Disabled *bool + type XgenSortResourceConfigInputXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenSortResourceConfigXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition + type XgenSortXgenDef struct + Field []*XgenObjectField + Object *XgenObjectDefinition