Fork me on GitHub
#graphql
<
2019-04-30
>
rplevy19:04:06

Has anyone tried using lacinia to run two distinct graphql servers on two different http routes? I know this is sort of counter to the GraphQL philosophy, but considering doing it, for reasons, and wondering if anyone ever does this, if there are any caveats etc.

hlship20:04:13

We don't do that, but there's no reason not to. You could even have one server two sets of routes for two schemas.

👍 4
hlship20:04:58

Our code uses on Jetty instance to listen on two ports, and applies different authentication based on the port (one port represents external requests, the other internal- within the firewall- requests).

donaldball20:04:09

We do the same, and we’re also planning on having a separate graphql api on another endpoint to allow (in)direct access to an unstable database.

👍 4