Reddit – Dive into anything
I’m doing an Express tutorial and I can’t figure out why we put the extended option in this method, and why we set it to false. I’ve spent two days searching for answers, reading docs. I understand that we need to parse the request object body for our server app because its been url-encoded by the browser. But everything I’ve read about that .urlencoded() method and the extended option still leaves me not knowing why we even use this option at all. Apparently if we set it to false, we use the querystring library which only parses simple strings and arrays. If we set it to true, it can parse just about anything. So … why did the instructor say we had to put “extended: false” in there? Is it just to make our weenie little app faster because the querystring process is simpler than the qs process? If anybody knows the answer to this, I would be SUPER grateful.