There is an example of express integration on Horizon.io Github, as shown here:
Horizon server example
I understand what this example shows: if you have an existing Express server, you can add a horizon server that provides the client part of the route so that they can connect to the horizon server through websites.
However, is there any way that the explicit part of the server also has access to collections in Horizon? For example, to do things like local authentication, CRON jobs, or API endpoints that accept PUT / POST requests.
From what I understand, using a direct connection to the RethinkDB Horizon database is not that useful because of a library called Fusion that dynamically sets metadata in tables to get the Firebase behavior that Horizon is used for.
How can I access the Horizon Data Server?
Jedev source
share