Closed csaket closed 4 years ago
Quoting from the documentation here:
Note that if you use the select option, then the results will always be raw plain objects instead of model instances.
Also the {raw: true} argument is in the wrong place (the reason for the error), it should be part of the options object where you put the select option like the following:
let results = models.instance.Subscription.findAsync(limitQuery, { select: ['count(id)'], raw: true });
Though it won't matter if you use raw:true or not here, because selecting columns will always produce a raw output.
I am using 2.3.2 in my project and need to select particular columns only using the
select
option. If I do not use{ raw: true }
then the query works, but with the raw option, I get cberror"No valid callback function was provided"
Can the two not go together?
Cassandra 3.11.2
CQL spec 3.4.4
I am using the async find