Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver function won't run #202

Open
measwel opened this issue Sep 4, 2019 · 0 comments
Open

Driver function won't run #202

measwel opened this issue Sep 4, 2019 · 0 comments

Comments

@measwel
Copy link

measwel commented Sep 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant