Skip to content
Snippets Groups Projects
Commit dbd7c4f7 authored by Fjodor's avatar Fjodor
Browse files

space at end of queries removed
parent 59dc3a2b
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,7 @@ func createQuery(JSONQuery *entity.IncomingQueryJSON) *string {
}
}
ret = TrimSuffix(ret, " ")
return &ret
}
......
......@@ -33,85 +33,6 @@ func main() {
"limit": 5000
}`)
// js := []byte(`{
// "return": {
// "entities": [
// 0,
// 1,
// 2
// ],
// "relations": [
// 0,
// 1
// ]
// },
// "entities": [
// {
// "type": "airports",
// "constraints": [
// {
// "attribute": "city",
// "value": "New York",
// "dataType": "string",
// "matchType": "exact"
// }
// ]
// },
// {
// "type": "airports",
// "constraints": [
// {
// "attribute": "city",
// "value": "San Francisco",
// "dataType": "string",
// "matchType": "exact"
// }
// ]
// },
// {
// "type": "airports",
// "constraints": [
// {
// "attribute": "state",
// "value": "HI",
// "dataType": "string",
// "matchType": "exact"
// }
// ]
// }
// ],
// "relations": [
// {
// "type": "flights",
// "depth": {
// "min": 1,
// "max": 3
// },
// "entityFrom": 2,
// "entityTo": 1,
// "constraints": [
// {
// "attribute": "Day",
// "value": "15",
// "dataType": "int",
// "matchType": "EQ"
// }
// ]
// },
// {
// "type": "flights",
// "depth": {
// "min": 1,
// "max": 1
// },
// "entityFrom": 0,
// "entityTo": -1,
// "constraints": []
// }
// ],
// "limit": 5000
// }`)
var inc entity.IncomingQueryJSON
json.Unmarshal(js, &inc)
result, _ := queryservice.ConvertQuery(&inc)
......
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