args

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonFilter = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "CommonFilter",
	Fields: graphql.InputObjectConfigFieldMap{
		"contains": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"eq": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"ne": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"in": &graphql.InputObjectFieldConfig{
			Type:        graphql.NewList(graphql.String),
			Description: "When the field & value both of them are array",
		},
		"in_index": &graphql.InputObjectFieldConfig{
			Type:        graphql.String,
			Description: "When the field is string & value is array",
		},
		"in_r": &graphql.InputObjectFieldConfig{
			Type:        graphql.NewList(graphql.String),
			Description: "In in reverse when the value is array but the field is not array",
		},
		"not_in": &graphql.InputObjectFieldConfig{
			Type: graphql.NewList(graphql.String),
		},
		"only_contains": &graphql.InputObjectFieldConfig{
			Type:        graphql.String,
			Description: "Field should only contains the value",
		},
	},
})
View Source
var DateFilter = graphql.NewInputObject(graphql.InputObjectConfig{
	Name: "DateFilterFilter",
	Fields: graphql.InputObjectConfigFieldMap{
		"at_date": &graphql.InputObjectFieldConfig{
			Type: graphql.String,
		},
		"between_date": &graphql.InputObjectFieldConfig{
			Type: graphql.NewList(graphql.String),
		},
	},
})
View Source
var FilterArg = &graphql.ArgumentConfig{
	Type: graphql.NewInputObject(graphql.InputObjectConfig{
		Name: "filterArgumentObject",
		Fields: graphql.InputObjectConfigFieldMap{
			"page": &graphql.InputObjectFieldConfig{
				Type: graphql.Int,
			},
			"limit": &graphql.InputObjectFieldConfig{
				Type: graphql.Int,
			},
		},
	}),
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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