Skip to content

orderBy a field with underscores in the name generates bad cypher #115

Closed
@michael-forman

Description

@michael-forman

With a schema:

type Foo {
  uuid: ID!
  some_field: String!
}

then a query:

query {
    foo(orderBy:some_field_asc) { uuid some_field }
}

generates cypher:

MATCH (foo:Foo)
RETURN foo { .uuid, .some_field } AS foo ORDER BY foo.some FIELD

that does not execute for me:

Could not process data through Data Port [graphql].
! org.neo4j.driver.exceptions.ClientException: Invalid input 'I': expected 'r/R' or 'o/O' (line 2, column 61 (offset: 76))
! "RETURN foo { .uuid, .some_field } AS foo ORDER BY foo.some FIELD"

Cheers,

Michael

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions