How can i specify what fields i get from a ```ctx....
# orm-help
t
How can i specify what fields i get from a
Copy code
ctx.db.query...
, i extended my User and want to add something from that record to the jwt
s
You would have to first create a query, such as
myQuery
, that returns the desired results. Then just do
ctx.db.query.myQuery(..)
Just curious, what are you adding to a JWT from a user model?
n
that's not correct, @Sam Jackson. When using
prisma-binding
, you cannot define
ctx.db.query.myQuery
yourself, that is automatically defined by your Prisma API
@Till which
prisma-binding
version are you using?