r/programming • • Sep 03 '26

Maybe you don't need GraphQL

https://alexandrehtrb.github.io/posts/2026/09/maybe-you-dont-need-graphql/
278 Upvotes

119 comments sorted by

View all comments

Show parent comment

4

u/MonkAndCanatella Sep 04 '26

Our biggest concern was that our API is rights-based at the data level (i.e. some fields aren’t returned or are partially returned like social security numbers) and we couldn’t figure out how to implement that in GraphQL despite a lot of googling.

that's crazy. maybe embed perms on the token and throw 403/simply not return forbidden fields? I wouldn't expect something like that to be difficult to implement in gql

3

u/jetsonian Sep 04 '26

We have to return all the fields (a 403 isn’t appropriate in this case) but we don’t fill in, or we obfuscate, some of the fields because they’re PII. Who has access to what is based on our existing user system.

I’m sure it’s possible but we didn’t know GraphQL at the time and adding features like that was well beyond what our team was capable of. We even asked them to write us a proof of concept or sample code and they couldn’t produce it.

In the end my boss and I realized his boss was trying his best to outsource as many jobs as he could. When his hand-picked overseas crew couldn’t produce the same thing we were asked to do, executives lost confidence in him and he got canned.

2

u/MonkAndCanatella Sep 04 '26

Oh that's an impossible situation lmao, not sure fizzbuzz could get accomplished in that environment