๐ง What is GraphQL?
GraphQL is a query language and runtime for APIs originally developed by Facebook. Unlike REST, which requires multiple endpoints for different data needs, GraphQL exposes a single endpoint that allows clients to:- Ask for exactly the data they need, and nothing more
- Retrieve nested, related data in a single request
- Use a strongly-typed schema to understand whatโs possible to query or mutate
๐ Why we chose GraphQL
We chose GraphQL because our partners range from fast-moving startups to established proptech platforms โ all with different integration needs. GraphQL gives your team:- Flexibility: Fetch exactly the data you needโno more, no less.
- Efficiency: Minimize payload size and reduce over-fetching to improve performance.
- Discoverability: Explore the schema with introspection, enabling faster onboarding.
- Scalability: Confidently build on top of an API that evolves without breaking your integration.
๐ GraphQL in action
Hereโs an example of a simple GraphQL query to fetch a referral:GraphQL query example
GraphQL mutaiton example
๐ Learn more about GraphQL
If youโre new to GraphQL or want to brush up your skills, here are some great resources:- graphql.org/learn โ The official GraphQL introduction
- How to GraphQL โ A free fullstack GraphQL tutorial
- Apollo GraphQL Docs โ For tooling, best practices, and client-side usage
- Postman GraphQL Guide โ GraphQL in familiar tools