How to use data from readFragment in Apollo?
问题 After a login mutation, a jwt token and a user object (id and firstName) are returned and stored in cache (as shown in the image below). I want to retrieve the user informations from the cache by using readFragment and pass it to Layout component. So I've tried to use read Fragment in my Layout component like this : class Layout extends Component { render() { const test = this.props.client.readFragment({ id: 1, // `id` is any id that could be returned by `dataIdFromObject`. fragment: gql`