-
Notifications
You must be signed in to change notification settings - Fork 146
Syntax error in the generated query after upgrading to 2.16.4 #527
Comments
Hey there! Could you share a minimal example of your schema and a query that reproduces this error? Thank you 💯 |
I have run into a similar issue while trying to work with interface types. I am new to all of this, so please excuse my ignorance. In my situation, was trying to create a relationship between two interfaces, as part of an interface. To demonstrate, i will try to build off the example provided on the interface and union type page in the documentation: `interface Person { type Likes @relation(name: "LIKES") { interface Subject { type Maths implements Subject { type User implements Person { Adding the data: AddUserLikes does seem to establish the realationship, but results in this error for both Person and Subject: I don't remember receiving that error when making simiar additions in the past. I am not sure if am using proper technique. but when I try to query using the interfaces:
I recognize this query may be incorrect, but it is how I get an error similar to op (also if quering User): It definitely seems tied to the interface in my case. When I try the simple query:
I get the previous abstract type error (even when following the documentation example exactly) : Again, I am new to all this, so I understand I may be going about this all wrong. The fact that I can't even query Person has me worried, though. Any insight is greatly appreciated. Thanks! |
Any updates regarding this issue? |
Apologies for late response. I reverted to 2.7.2 because this is for an app that it's in production ;) I created a new branch and tried to reproduce this and I can confirm that the bug is definitely related to Interfaces. Schema:
An example of a query:
if I remove the fragment ...on Component, I don't get the error. If I change this fragment to be "...on Resources", I get different error:
Thanks for your help! |
This issue should be resolved with the PR, I would be happy to hear if it worked for you too. |
Whooo! That seems to work for me!! Thanks! |
Hello,
I recently updated from the version 2.7.2 to 2.16.4 and this caused a lot of my queries to fail with error like this
"Invalid input ']': expected whitespace, comment or an expression
This is the debug output:
When I run this query in the neo4j browser, I get this:
Invalid input '': expected whitespace, DISTINCT, an expression or ')' (line 1, column 33 (offset: 32))
Any help is appreciated.
The text was updated successfully, but these errors were encountered: