GraphQL
Efficient and Typed Data Fetching
I have experience on both sides of a GraphQL API—as a consumer on the frontend and a provider on the backend.
Consuming GraphQL in the Frontend
This portfolio is built with Gatsby, which uses GraphQL extensively as its data layer. I have written numerous GraphQL queries to source data from Markdown files and other sources at build time, giving me a deep, practical understanding of how to query for data from a frontend perspective.
Exposing a GraphQL API
On the backend, my experience with API Platform in the DJPConnect project involved automatically exposing a GraphQL endpoint alongside our REST API. This gave clients a powerful and flexible way to request exactly the data they needed, reducing over-fetching and improving performance.
Key Competencies
- Query Language: Writing complex GraphQL queries, including arguments, variables, and fragments.
- Schema Definition Language (SDL): Understanding how to read and define a GraphQL schema.
- Frontend Integration: Using GraphQL with frontend frameworks like Gatsby.
- Backend Exposure: Exposing a GraphQL API using frameworks like API Platform.
- REST vs. GraphQL: Understanding the trade-offs between GraphQL and traditional REST APIs.