resolvers = {
// root entry point to GraphQL service
Advisor: {
hierarchyUpwards(advisor, _, ctx, resolveInfo) {
let session = ctx.driver.session()
let params = { hash: advisor.hash }
console.log(advisor)
let query = ....
return session.run(query, params)
.then(result => { return result.records.map(record => {
return {
//data conversion
}
} )})
}
}
My query was working as expected however whenever I perform the advisor.hash it always returns an undefined. and the advisor parameter is always empty.
This is my schema.
And I've written my custom resolver
as follows
My query was working as expected however whenever I perform the advisor.hash it always returns an undefined. and the advisor parameter is always empty.
My configuration was set up as follows
I need the id of the current object being processed however
always returns
{}