rethinkdb / horizon

Horizon is a realtime, open-source backend for JavaScript apps.
MIT License
6.78k stars 349 forks source link

TypeError: Cannot read property 'connection' of undefined #805

Closed jirikolarik closed 8 years ago

jirikolarik commented 8 years ago

Hi, I'm trying to create express server extending horizon.io following docs. How can I get connection configuration to run rethink query?

I tried

const conn = horizon._reql_conn.connection();

as it is in a documentation, but it says

TypeError: Cannot read property 'connection' of undefined

Server version: 2.0.0 Client version: 2.0.0

jirikolarik commented 8 years ago

Got it, it should be called on horizonServer instance and look somehow like this horizonServer._reql_conn.connection().