Transform not in http context #2662
Vishwas-verma
started this conversation in
General
Replies: 1 comment 3 replies
-
Hey @Vishwas-verma! 👋 Where did you saw that we provide a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
public async login({request, auth, response, transform}: HttpContextContract) {
try {
const validatedData = await request.validate({
schema: loginSchema
})
const user = await auth.attempt(validatedData.email, validatedData.password)
return transform.item(user, UserTransformer)
} catch (e) {
response.badRequest(e.message)
}
}
Hye can anyone help why transform is not in HttpContextContract.
It is giving error TS2339: Property 'transform' does not exist on type 'HttpContextContract'. error
Beta Was this translation helpful? Give feedback.
All reactions