executor

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 20 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataloaderResultTyped

type DataloaderResultTyped[T any] struct {
	Result  []T  `json:"result"`
	Count   int  `json:"count"`
	Cached  bool `json:"cached"`
	HasMore bool `json:"hasMore"`
	Error   bool `json:"error"`
	Code    int  `json:"code"`
}

type GraphQLExecutor

type GraphQLExecutor struct {

	//SharedDriver      interfaces.SharedDBInterface no longer needed
	Dataloaders *models.DataLoaders
	Cache       *models.ApplicationCache
	// contains filtered or unexported fields
}
var GQLServerExecutor GraphQLExecutor

func GetGraphQLExecutor

func GetGraphQLExecutor(cfg *models.Config, systemDB interfaces.ApitoSystemDB) *GraphQLExecutor

func (*GraphQLExecutor) DataLoaderHandler

func (s *GraphQLExecutor) DataLoaderHandler(ctx context.Context, keys []string) []*dataloader.Result[interface{}]

func (*GraphQLExecutor) GetApplicationCache

func (s *GraphQLExecutor) GetApplicationCache(ctx context.Context) (*models.ApplicationCache, error)

func (*GraphQLExecutor) GetConnectionManager added in v1.4.0

func (s *GraphQLExecutor) GetConnectionManager() *database.ConnectionManager

GetConnectionManager returns the connection manager instance

func (*GraphQLExecutor) GetDataLoaders

func (s *GraphQLExecutor) GetDataLoaders(ctx context.Context) (*models.DataLoaders, error)

func (*GraphQLExecutor) GetExecutorVersion

func (s *GraphQLExecutor) GetExecutorVersion(ctx context.Context) (string, error)

func (*GraphQLExecutor) GetProjectDriver

func (s *GraphQLExecutor) GetProjectDriver(ctx context.Context) (interfaces.ProjectDBInterface, error)

func (*GraphQLExecutor) GetSharedDBDriver

func (s *GraphQLExecutor) GetSharedDBDriver(ctx context.Context) (interfaces.SharedDBInterface, error)

func (*GraphQLExecutor) HandleMediaURL

func (s *GraphQLExecutor) HandleMediaURL(ctx context.Context, media map[string]interface{}) (interface{}, error)

func (*GraphQLExecutor) HandlePayloadFormatting

func (s *GraphQLExecutor) HandlePayloadFormatting(ctx context.Context, param *models.CommonSystemParams, local string,
	fields []*models.FieldInfo,
	inputPayload map[string]interface{},
	dbPayload map[string]interface{},
	deltaUpdate bool,
) (map[string]interface{}, error)

func (*GraphQLExecutor) HydrateCommonDocuments added in v1.8.23

HydrateCommonDocuments fills Data on tenant shadow rows from the base copy.

func (*GraphQLExecutor) HydrateCommonRelationMaps added in v1.8.23

func (s *GraphQLExecutor) HydrateCommonRelationMaps(ctx context.Context, param *models.CommonSystemParams, keyed map[string]interface{}) (map[string]interface{}, error)

HydrateCommonRelationMaps hydrates executor DataLoaderHandler JSON maps.

func (*GraphQLExecutor) Init

func (s *GraphQLExecutor) Init(ctx context.Context, _driver *models.InitParams) error

func (*GraphQLExecutor) LoadCommonDocsByIDs added in v1.8.23

func (s *GraphQLExecutor) LoadCommonDocsByIDs(ctx context.Context, param *models.CommonSystemParams, ids []string) (map[string]*types.DefaultDocumentStructure, error)

LoadCommonDocsByIDs fetches common-model rows from the base project DB.

func (*GraphQLExecutor) NewParam

func (*GraphQLExecutor) SetApplicationCache

func (s *GraphQLExecutor) SetApplicationCache(ctx context.Context, cache *models.ApplicationCache) error

func (*GraphQLExecutor) SetProjectDriverCredential

func (s *GraphQLExecutor) SetProjectDriverCredential(ctx context.Context, driverCredentials *models.DriverCredentials) error

func (*GraphQLExecutor) SetSharedDBDriver

func (s *GraphQLExecutor) SetSharedDBDriver(ctx context.Context, driver interfaces.SharedDBInterface) error

func (*GraphQLExecutor) SolvePublicMutation

func (s *GraphQLExecutor) SolvePublicMutation(ctx context.Context, resolverName string, _id *string, _ids []*string, status *string, local *string, _userInputPayload interface{}, _connect interface{}, _disconnect interface{}, cache *models.ApplicationCache) ([]byte, error)

func (*GraphQLExecutor) SolvePublicQuery

func (s *GraphQLExecutor) SolvePublicQuery(ctx context.Context, model string, args interface{}, selectionSet *ast.SelectionSet, cache *models.ApplicationCache) ([]byte, error)

func (*GraphQLExecutor) SolvePublicQueryCount

func (s *GraphQLExecutor) SolvePublicQueryCount(ctx context.Context, model string, args interface{}, cache *models.ApplicationCache) ([]byte, error)

func (*GraphQLExecutor) TrackUploadHistory

func (s *GraphQLExecutor) TrackUploadHistory(ctx context.Context, param *models.CommonSystemParams, sent *models.FileDetails) error

Jump to

Keyboard shortcuts

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