validationResult is not a function code example
Example: validationResult is not defined
const { check, validationResult } = require('express-validator/check');
// or:
const check = require('express-validator/check').check;
const validationResult = require('express-validator/check').validationResult;