-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
wait for answerFurther information is requestedFurther information is requested
Description
I tried this code example:
val schema =
"""
type Person {
name: ID!
age: Int
}
# Optional if you use generated queries
type Query {
person : [Person]
}"""
val query = """ quero { person { age } } """
val schema = SchemaBuilder.buildSchema(idl)
val ctx = QueryContext()
val (cypher, params) = Translator(schema).translate(query, mapOf(), ctx)
// generated Cypher
cypher == "MATCH (p:Person) WHERE p.name = $pName RETURN p {.age} as p"
but i get an error about GraphQLDefaultValueArgument,
I would like to know if I am doing something wrong and if this library can be used solely to translate graphql queries into cypher queries.
Metadata
Metadata
Assignees
Labels
wait for answerFurther information is requestedFurther information is requested