Skip to content
Snippets Groups Projects
Verified Commit ca2c08f4 authored by Dennis Collaris's avatar Dennis Collaris
Browse files

feat: change incoming query JSON to only include query ID, ML and cached parameters

parent c339574a
No related branches found
No related tags found
1 merge request!5feat: change incoming query JSON to only include query ID, ML and cached parameters
Pipeline #142735 failed
...@@ -9,17 +9,8 @@ package entityv2 ...@@ -9,17 +9,8 @@ package entityv2
IncomingQueryJSON describes the query coming into the service in JSON format IncomingQueryJSON describes the query coming into the service in JSON format
*/ */
type IncomingQueryJSON struct { type IncomingQueryJSON struct {
SaveStateID string `json:"saveStateId"` QueryID string `json:"queryID"`
Limit int `json:"limit"` MachineLearning []QueryMLStruct `json:"ml"`
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"` Cached bool `json:"cached"`
} }
...@@ -27,8 +18,8 @@ type IncomingQueryJSON struct { ...@@ -27,8 +18,8 @@ type IncomingQueryJSON struct {
QueryMLStruct holds info for machinelearning QueryMLStruct holds info for machinelearning
*/ */
type QueryMLStruct struct { type QueryMLStruct struct {
Type string Type string `json:"type"`
Parameters []string Parameters []string `json:"parameters"`
} }
type QueryStruct struct { type QueryStruct struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment