express-cassandra
express-cassandra copied to clipboard
Driver function won't run
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' ]