Skip to content

Compatibility with "classic" and "modern" signatures #2429

Description

@PowerKiKi

@jerelmiller (cc @phryneas), I would like to make apollo-angular compatible with the latest changes of @apollo/client 4.2 that introduced "classic" and "modern" signatures. However, I am not quite sure how to proceed, and since you contributed very heavily to the new-ish typing structure of apollo-angular during the migration to Apollo v4, I hoped you might have a few advice on the matter ?

More specifically, I don't think we can use the types you introduced such as Apollo.QueryResult (vs ApolloClient.QueryResult) as-is anymore. And instead we should somewhat rely on the the ApolloClient.query.Signature, but I am not sure what would the best way to do that.

I am willing to break everything and make a major release if needed. I am even considering dropping most features, so that apollo-angular becomes an extremely thin wrapper that monkey-patch @apollo/client, in order to rely 100% on @apollo/client types instead of introducing an "extra layer" of types... but hopefully you have better comprehension of @apollo/client and you can guide me toward a saner solution 😅

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions