-
Notifications
You must be signed in to change notification settings - Fork 147
Relation types in augmented schema: _id bug, update mutation feature request #220
Comments
On the feature request: I realized that an attempt to The arguments of For If there were an auto-generated So I can see how that's a big can of worms and not necessarily a priority. Hopefully the bug mentioned in the original post is a simpler fix. |
This might be two issues, but I wanted to bring them up together with a single schema as a reference point for examples.
Minimal schema:
With
"neo4j-graphql-js": "^2.4.2"
, I usemakeAugmentedSchema
and set up an Apollo Server. It launches fine, and I can start issuing queries in the Playground.Bug:
There is a bug if I attempt to query the
_id
field of anAccepts
object.This works:
But if I remove the
#
, then I get this error:Of course, if I replace
ID(journal_Accepts)
withID(journal_Accepts_relation)
, this Cypher query runs fine in my Neo4j Browser.Feature request:
The auto-generated mutations include Add/Update/Remove for both
Journal
andArticle
. Rather than explicit Add/Update/Remove forAccepts
, we have Add/Remove forJournalAccepts
(which is a design choice I can understand) but no corresponding Update mutation. Maybe in this example it's silly to Update a field likefirstPageNumber
, but I was surprised anyway that Update mutations weren't generated for relation types in general.The text was updated successfully, but these errors were encountered: