express-cassandra icon indicating copy to clipboard operation
express-cassandra copied to clipboard

Driver function won't run

Open measwel opened this issue 5 years ago • 0 comments

As per documentation, models.driver should point to the cassandra driver instance, so one should be able to run driver functions. I am trying to execute a query with the driver:

models.driver.execute(q, function (err, result) {

But this throws: "stacktrace": "TypeError: models.driver.execute is not a function

The models.driver properties are: [ 'Client', 'ExecutionProfile', 'types', 'errors', 'policies', 'auth', 'token', 'metadata', 'Encoder', 'defaultOptions', 'version', 'ClientAsync', 'ExecutionProfileAsync', 'EncoderAsync', 'defaultOptionsAsync' ]

measwel avatar Sep 04 '19 11:09 measwel