Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

query injection nestjs

import { Query } from "@nestjs/common";

// inside controller
@Get()
findAll(@Query('active') active: boolean) {
  return this.employeeService.findAll({ active });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #injection #nestjs
ADD COMMENT
Topic
Name
1+7 =