From 3b5586342c30ce5a6394b9cef5443f56be38ce5a Mon Sep 17 00:00:00 2001 From: Dave Scotese Date: Mon, 12 May 2025 14:00:56 -0700 Subject: [PATCH] Update url.md Clarified parseQueryString and its default when omitted (but only under orlObject.query - there may be other places that need this clarification). --- doc/api/url.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/api/url.md b/doc/api/url.md index 6f7e373653c5e8..0d0d7e4d98b582 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -1643,7 +1643,9 @@ For example: `'http:'`. The `query` property is either the query string without the leading ASCII question mark (`?`), or an object returned by the [`querystring`][] module's `parse()` method. Whether the `query` property is a string or object is -determined by the `parseQueryString` argument passed to `url.parse()`. +determined by the `parseQueryString` argument passed to `url.parse()`. Think +of `parseQueryString` as "`query` should be an Object". If omitted, it +defaults to false so `query` will be a string. For example: `'query=string'` or `{'query': 'string'}`.