xpepermint/query-types

express 5

Closed this issue · 2 comments

in express 5 you can't assign to req.query
so the correct way to use plugin would be

import queryTypes from "query-types";
import qs from "qs";

app.set("query parser fn", str => queryTypes.parseObject(qs.parse(str)));

Hum ... I'm using req.query with express 5 in the same way as with version 4. Where exactly you see the problem?