Versions in this module Expand all Collapse all v1 v1.4.0 Aug 14, 2022 v1.3.0 Mar 19, 2022 v1.2.0 May 4, 2021 v1.1.2 Apr 25, 2021 v1.1.1 Dec 7, 2020 v1.1.0 Nov 30, 2020 v1.0.5 Jun 28, 2020 v1.0.4 May 24, 2020 v1.0.3 Mar 8, 2020 v1.0.2 Feb 23, 2020 v1.0.1 Dec 15, 2019 v1.0.0 Sep 7, 2019 Changes in this version + const QueryTypeMutation + const QueryTypeQuery + const QueryTypeSubscription + const SystemRuleGraphQLSubscriptionsName + var ErrAmbiguousDefinition = errors.New("Ambiguous definition") + var ErrInvalidConstruct = errors.New("Invalid construct") + var ErrMissingOperation = errors.New("Missing operation") + var ErrRuntimeError = errors.New("Runtime error") + type DataSlice struct + func (d DataSlice) Len() int + func (d DataSlice) Less(i, j int) bool + func (d DataSlice) Swap(i, j int) + type GraphQLRuntimeProvider struct + ErrorKeys []string + ErrorPaths [][]string + Errors []*RuntimeError + Name string + OperationName string + QueryType QueryType + VariableValues map[string]interface{} + func NewGraphQLRuntimeProvider(name string, part string, gm *graph.Manager, op string, ...) *GraphQLRuntimeProvider + func (rtp *GraphQLRuntimeProvider) CheckWritePermission(path []string, node *parser.ASTNode) bool + func (rtp *GraphQLRuntimeProvider) FetchNode(part string, key string, kind string) (data.Node, error) + func (rtp *GraphQLRuntimeProvider) FetchNodePart(part string, key string, kind string, attrs []string) (data.Node, error) + func (rtp *GraphQLRuntimeProvider) InitSubscription(rt *documentRuntime) + func (rtp *GraphQLRuntimeProvider) Runtime(node *parser.ASTNode) parser.Runtime + func (rtp *GraphQLRuntimeProvider) TraverseAST(root *parser.ASTNode, visitor func(*parser.ASTNode)) + type QueryType string + type RuntimeError struct + Detail string + IsFatal bool + Line int + Node *parser.ASTNode + Pos int + RuntimeProvider *GraphQLRuntimeProvider + Source string + Type error + func (re *RuntimeError) Error() string + type SubscriptionCallbackHandler interface + IsFinished func() bool + Publish func(map[string]interface{}, error) + type SystemRuleGraphQLSubscriptions struct + ID string + func (r *SystemRuleGraphQLSubscriptions) AddHandler(handler *subscriptionHandler) + func (r *SystemRuleGraphQLSubscriptions) Handle(gm *graph.Manager, trans graph.Trans, event int, ed ...interface{}) error + func (r *SystemRuleGraphQLSubscriptions) Handles() []int + func (r *SystemRuleGraphQLSubscriptions) Name() string + func (r *SystemRuleGraphQLSubscriptions) RemoveHandler(handler *subscriptionHandler)