bookstore-nest | Nest framework TypeScript starter repository | Web Framework library
kandi X-RAY | bookstore-nest Summary
kandi X-RAY | bookstore-nest Summary
Nest framework TypeScript starter repository.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bookstore-nest
bookstore-nest Key Features
bookstore-nest Examples and Code Snippets
Community Discussions
Trending Discussions on bookstore-nest
QUESTION
I'm starting to learn Nest.js, so I am following an Academind Tutorial (link).
My code is not working as expected when I try to get the body
variable with the @Body()
decorator in the POST
request. Following this part of the code in products.controller.ts
ANSWER
Answered 2020-Apr-07 at 19:15You're sending form-data
which NestJS does not correctly parse by default. You can use application/x-www-url-form-encoded
or application/json
along with the raw
option in Postman. The JSON body would look like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bookstore-nest
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page