aroman
10/09/2018, 1:19 AMUser type into my schema.graphql. When ever I try to for example query as such: const user = await ctx.db.user({ email });. I log out user.password and it returns undefined. The User object returns only:
{ middleName: 'vic',
email: 'test@test',
lastName: 'Roman',
firstName: 'Alejandro',
id: 'cjmzgzmgc000708611vn6klyw' }
but it is missing role and password. I am trying to plug use bcrypt's compare function, but it wont work since the arguments user.password returns as undefined. Would anyone happen to be able to point me in the right direction