by can16358p · 5y ago · 0 comments
But again, backend guys being backend.
I have yet to be wrong in immediately steeling myself for the worst the second I see the word.
I've found backend devs to be more conservative than front.
for example, any/all logic can be in the backend. A fn call fn(a), fn(b) or fn(c) in the FE can simply be fn_a(), fn_b() and fn_c() instead, but that would needlessly complicate the backend. If there is an object with N fields, and I want a subset, there are N*2 possible subsets, and whatever number of subsets I need (between 1 and N*2), I can either create that many BE endpoints, or a single endpoint that accepts a list of fields it should return - which is what I believe graph-ql is?