Skip to content
Snippets Groups Projects
user avatar
Joris authored
Test are "test all at once"-tests and more tests could definitely be added to tests individual components, but for now these will probably suffice
fed0ed60
History

Query Converter

This is the query-conversion package. It holds the code that translates the JSON of the visual query to the selected database language. There are currently two implementations, one for the Arango Query Language and one for Cypher.

Creating a new converter

import "git.science.uu.nl/graphpolaris/query-conversion"

queryservice := cypher.NewService()

Converting a query

A query can be made by providing the JSON of the visual query and feeding it into the ConvertQuery function.

query, err := queryservice.ConvertQuery(JSONquery)

Creating a mock converter

import "git.science.uu.nl/graphpolaris/query-conversion"

mockService := NewMockService()