Skip to content

The basic library example doesn't work #269

Open
@rullyalves

Description

@rullyalves

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

No one assigned

    Labels

    wait for answerFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions