3 ms·
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 res
by hnrodey 6y ago
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.
- cs-szazz 6y agoI see, so you're saying that the GraphQL contract wouldn't actually allow querying by phone number in the first place?
- leesalminen 6y agoIt’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.