Skip to content
Snippets Groups Projects
Heijden,T.A.J. van der (Thijs)'s avatar
Heijden,T.A.J. van der (Thijs) authored
Cypher converter

See merge request datastrophe/query-conversion!10
1e76c647
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()