Title
f

Fi1osof

04/28/2018, 8:15 PM
restored 1.6.3 broken to...
const user = await ctx.db.query.user({ where: { 
    username,
  } })
Error: Field "user" of type "User" must have a selection of subfields. Did you mean "user { ... }"?
It's fixed prisma-binding@1.5.10+ But above v1.5.12 errors
(node:26108) UnhandledPromiseRejectionWarning: GraphQLError: Syntax Error GraphQL request (82:1) Unexpected String

81:
82: """
   ^
83: An object with an ID
n

nilan

04/30/2018, 5:55 PM
try
const user = await ctx.db.query.user({ where: { 
    username,
  } }, info)