Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

91
Views
¿Se burla de un middleware de apolo para probar?

Estoy tratando de hacer algunas pruebas de integración en un backend con un servidor apollo y una base de datos mysql.

El problema es que, múltiples mutaciones necesitan una autenticación como administrador.

Por ejemplo, aquí hay un middleware:

 export const isAuth: MiddlewareFn<Context> = ({ context }, next) => { if (!context.req.session.userId) { throw new AuthenticationError('You are not logged in'); } return next(); };

Traté de persistir la sesión entre dos mutaciones de graphql usando super test, pero no parecía funcionar.

¿Tiene alguna idea de cómo podría burlarme de la autenticación usando broma?

Atentamente

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!