News for hackers. Stuff that matters.
Re:Migrating Netflix to GraphQL Safely by andrewingram on Sunday June 18, 2023 @04:07PM (#36383933)
By wrapping the code that loads data with code that checks whether the current (i.e. requesting) user is allowed to load that data. I don't really understand the problem, how is this any more difficult than any other API paradigm?
Re:Migrating Netflix to GraphQL Safely by foota on Sunday June 18, 2023 @04:24PM (#36384096)
I think the additional issues come when you want to define access by a relationship instead of just the entity, which means you need to check access based on the edges, and not the nodes. You'd have to do this anyway with REST, but I think it's easier in some ways to make mistakes and allow more access than intended.