I am trying to use buildGraphQLProvider with @apollo/client 4.0.6 which doesn't seem to be compatible with ra-data-graphql.
Here is my snippet:
const client = new ApolloClient({
cache: new InMemoryCache(),
link: new HttpLink(),
});
const buildQuery = () => () => {
return {
query: gql``,
variables: {},
parseResponse: (response: unknown) => response,
};
};
buildGraphQLProvider({ client, buildQuery });
with @apollo/client in version 4.0.6 and ra-data-graphql in version 5.11.4.
I'm having the following issue:
error TS2739: Type 'ApolloClient' is missing the following properties from type 'ApolloClient<unknown>': typeDefs, addResolvers, setResolvers, getResolvers, setLocalStateFragmentMatcher
This happens because ra-data-graphql is expecting an ApolloClient v3 whereas I provide an ApolloClient v4.
Are you planning to support version 4 from ApolloClient ?
I am trying to use
buildGraphQLProviderwith@apollo/client4.0.6 which doesn't seem to be compatible withra-data-graphql.Here is my snippet:
with
@apollo/clientin version 4.0.6 andra-data-graphqlin version 5.11.4.I'm having the following issue:
This happens because
ra-data-graphqlis expecting anApolloClientv3 whereas I provide anApolloClientv4.Are you planning to support version 4 from
ApolloClient?