Skip to content

Instantly share code, notes, and snippets.

@sgnl
Last active January 15, 2016 01:15
Show Gist options
  • Save sgnl/f85abdfc71e3b501e6e3 to your computer and use it in GitHub Desktop.
Save sgnl/f85abdfc71e3b501e6e3 to your computer and use it in GitHub Desktop.
Fixing "All my values are strings"

in server.js file

server.use(bodyParser.urlencoded({ extended: true})); // remove this line
server.use(bodyParser.json({ type: 'application/json' })); //replace with this line

in Postman:

image

Notice the "JSON (application/json)" setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment