Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I see, so you're saying that the GraphQL contract wouldn't actually allow querying by phone number in the first place?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: