Apollo graphql setting header to authmiddleware not working
问题 I am using react-native and apollo client and if I try to set header by jwt stored in AsyncStorage, it seems not working. Other resolvers which doesn't need header works very well. My code is like below. import { ApolloClient } from "apollo-client"; import { InMemoryCache } from "apollo-cache-inmemory"; import { ApolloLink } from "apollo-link"; import { createHttpLink } from "apollo-link-http"; import AsyncStorage from "@react-native-community/async-storage"; const cache = new InMemoryCache()