graphql

rplevy 2019-04-30T19:55:06.032100Z

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.

hlship 2019-04-30T20:03:13.032700Z

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.

πŸ‘ 1
hlship 2019-04-30T20:03:58.033400Z

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).

rplevy 2019-04-30T20:05:23.033700Z

thanks!

donaldball 2019-04-30T20:08:09.035200Z

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.

πŸ‘ 1