menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Studio
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

Relay-style query query generator being considered?

August 3, 2020 at 6:06pm

Relay-style query query generator being considered?

August 3, 2020 at 6:06pm
I've come to Apollo from spending a lot of time with Relay, and the one thing I really miss is the query generator, which allows you to declaratively specify which data a React component needs as a GraphQL fragment alongside the component, and then generates the top level query on your behalf.
It also adds a linter to ensure that only data declared in a components fragment is used by the component.
This makes it impossible to overfetch data as well as making it impossible to accidentally render some data in your component that it hasn't requested (which is fragile as somebody else could remove that field later).
Is Apollo thinking of implementing similar functionality?

August 3, 2020 at 6:49pm
Was just thinking about making the switch over to relay for this exact reason
  • reply
  • like