Closed jacobhausler closed 8 years ago
Hey - the node ids are equal to ${typeName}:${databaseId}
, so to get the type and database id it just splits on the colon. This should work:
query{
node(id:"User:0409c1bd-6652-4e31-9f92-24bdf07968ba"){
... on User{
id
fullName
}
}
}
But this should definitely raise a more descriptive error when the id isn't valid.. going to leave this issue open to track adding that check.
added a descriptive error message here
Hey,
The following query returns a syntax error (the record exists in my db):
This is the query that is being run by the Database Adapter:
Can you advise how type resolution works with the Node query, and why the query is calling the id as the table name instead of as $1?