Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
DOC-2020-S16-Aug23
-
1
Description
The linked docs section contains the following code snippet:
var parameters = new QueryParameters() |
.Add('type', 'User'); |
var options = new QueryOptions(); |
|
var result = await cluster.query(
|
'SELECT x.* FROM `default` WHERE x.Type=$type', |
{'type': 'User'}); |
Neither QueryParameters() or QueryOptions are used in the query call, nor are they exported at all in the Node 3.0 SDK. Furthermore, the example for specifying the named parameters is the incorrect way to pass these parameters to the SDK.
The linked JSCBC explains a bug that means correctly specified named parameters also don't work as intended. This needs to be fixed to determine what the correct code for this example should be.