Can i serve entire database as service without writing new backend . Let's say I have react frontend and I want write graphQL queries using Apollo without writing a new node application and my own resolvers ?
n
nilan
10/04/2018, 1:53 PM
Yes, you can. It's not a typical setup however.
j
Jared
10/04/2018, 1:55 PM
Well, basic crud is very straightforward. You can use forwardTo and get up and running fast. But any business logic will need a resolver.
👍 1
u
UsulPro
10/04/2018, 4:14 PM
I'm interested in this question as well. But as I understand in this case it works without authorization?
l
lawjolla
10/04/2018, 4:25 PM
... every time I see these questions, I'm sad that RethinkDB folded. They developed Horizon for this exact use case.
As Jared said, I would still put a GraphQL server in front and
forwardTo
as needed.
j
Jared
10/04/2018, 5:22 PM
you can setup you own auth in middleware. We use graphql-shield