Custom GraphQL resolvers

Hi, how do i access neo4j database from my GraphQL resolver(ctx).

I'm trying to search the database for the existence of email before running CreateUser Mutation, on condition that the email doesn't already exist