News for hackers. Stuff that matters.
Re:Why not use GraphQL? by hnrodey on Saturday November 07, 2020 @09:32AM (#25015256)
Your GraphQL api is capable only of what you code it to do. GraphQL is nothing more than a "contract definition" on what callers can ask your API to do. The responsibility is still totally up to you to determine what database query to run and optimize/index appropriate.

Zero difference from your REST call.

Re:Why not use GraphQL? by cs-szazz on Saturday November 07, 2020 @09:43AM (#25015321)
I see, so you're saying that the GraphQL contract wouldn't actually allow querying by phone number in the first place?
Re:Why not use GraphQL? by leesalminen on Saturday November 07, 2020 @11:08AM (#25015840)
It’s up to whoever built the backend. GQL doesn’t care either way. If the person who built the back end wanted to allow query by phone number, they’d index that field to maintain query performance.