4 ms·
You can use tools that will automatically generate GraphQL schema and operations from a database or it should be you design the schema & operations and control
by mleo 6y ago
You can use tools that will automatically generate GraphQL schema and operations from a database or it should be you design the schema & operations and control how the queries and mutations operate. The former is where some of the original concerns may come from, but the latter isn’t different from REST design.
- cs-szazz 6y agoThe former would be something like Hasura right? As a backend dev, I get nervous when I see a tagline like "Instant GraphQL APIs for you data", because I worry about the schema and operations that are exposed.
- slow_donkey 6y agoYes it'd be like Hasura. There's also libraries (usually in-house) that let you query for every relation off that specific table. You can imagine how it works just match up the fks and expose in the graphql schema. That gives you control of what not to expose as well.
- elitan 6y agoYou need to set permissions manually for every GraphQL operation to be exposed with Hasura. I think backend devs should be more worried about loosing 75% of their work when it comes to Hasura.