graphql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListedRelease = graphql.NewObject(
	graphql.ObjectConfig{
		Name:        "ReleaseSummary",
		Description: "A specific version of a release.",
		Fields: graphql.Fields{
			"name":    nameField,
			"version": versionField,
			"labels":  labelsField,
			"tarball": tarballField,
		},
	},
)
View Source
var ReleaseLabel = graphql.NewObject(
	graphql.ObjectConfig{
		Name:        "ReleaseLabel",
		Description: "A release label.",
		Fields: graphql.Fields{
			"name": &graphql.Field{
				Type: graphql.String,
				Resolve: func(p graphql.ResolveParams) (interface{}, error) {
					if source, ok := p.Source.(string); ok {
						return source, nil
					}

					return nil, nil
				},
			},
		},
	},
)

Functions

func BuildListQueryArgs

func BuildListQueryArgs(f datastore.FilterParams) (string, string, map[string]interface{})

func NewFilterArgs

func NewFilterArgs() graphql.FieldConfigArgument

func NewLabelsQuery

func NewLabelsQuery(r datastore.Index) *graphql.Field

func NewListQuery

func NewListQuery(index datastore.Index) *graphql.Field

func NewQuery

func NewQuery(index datastore.Index, compilationIndex compilationdatastore.Index, analysisGetter analysisdatastore.NamedGetter) *graphql.Field

TODO compilation should be optional

Types

This section is empty.

Jump to

Keyboard shortcuts

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