Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TwoEntitiesWithFilter = []byte(`{
"queryname": 1,
"db": 1,
"query": [
{
"node": {
"label": "person",
"id": "p1",
"filter": [{ "attribute": "name", "operation": "EQ", "value": "\"John\"" }],
"relationship": {
"label": "friend",
"direction": "TO",
"filter": [{ "attribute": "since", "operation": "GT", "value": "\"2015-01-01\"" }],
"node": {
"label": "person",
"filter": [{ "attribute": "name", "operation": "NEQ", "value": "\"John\"" }]
}
}
}
}
]
}
`)
Functions ¶
This section is empty.
Types ¶
type ExportNodeStruct ¶
type FilterStruct ¶
type IncomingQueryJSON ¶
type IncomingQueryJSON struct { SaveStateID string `json:"saveStateId"` Limit int `json:"limit"` Return []string `json:"return"` Query []QueryStruct `json:"query"` Logic interface{} `json:"logic"` // Entities []QueryEntityStruct `json:"entities"` // Relations []QueryRelationStruct `json:"relations"` // GroupBys []QueryGroupByStruct `json:"groupBys"` MachineLearning []QueryMLStruct `json:"machineLearning"` // Modifiers []QueryModifierStruct // Prefix string Cached bool `json:"cached"` }
IncomingQueryJSON describes the query coming into the service in JSON format
type LogicStruct ¶
type NodeStruct ¶
type NodeStruct struct { Label string `json:"label"` ID string `json:"id"` // Logic []LogicStruct `json:"logic"` Filter []FilterStruct `json:"filter"` Relation RelationStruct `json:"relation"` SubQuery *QueryStruct `json:"subquery"` Export []ExportNodeStruct `json:"export"` }
type QueryMLStruct ¶
QueryMLStruct holds info for machinelearning
type QuerySearchDepthStruct ¶
QuerySearchDepthStruct holds the range of traversals for the relation
type QueryStruct ¶
type QueryStruct struct { ID string `json:"id"` Node NodeStruct `json:"node"` }
type RelationStruct ¶
type RelationStruct struct { Label string `json:"label"` ID string `json:"id"` Depth QuerySearchDepthStruct `json:"depth"` Direction string `json:"direction"` Node *NodeStruct `json:"node"` }
Click to show internal directories.
Click to hide internal directories.