masumsoft / express-cassandra

Cassandra ORM/ODM/OGM for NodeJS with support for Apache Cassandra, ScyllaDB, Datastax Enterprise, Elassandra & JanusGraph.
http://express-cassandra.readthedocs.io
GNU Lesser General Public License v3.0
227 stars 67 forks source link

Driver function won't run #202

Open measwel opened 5 years ago

measwel commented 5 years ago

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' ]