DEV Community

Discussion on: A Clean Approach to Using Express Validator

Collapse
 
arnabmunshi profile image
ARNAB MUNSHI

hi Alain

import { matchedData, validationResult } from 'express-validator';

This line not working for me. I don't know why.

But the following code is work for me.

import expressValidator from "express-validator";
const { body, validationResult } = expressValidator;