Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update apollo-client in / from 2.0.3 to 2.4.1 #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Aug 27, 2018

Dependencies.io has updated apollo-client (a npm dependency in /) from "2.0.3" to "2.4.1".

2.4.1
  • mutate's refetchQueries option now allows queries to include a custom
    context option. This context will be used when refetching the query.
    For example:

    context = {
      headers: {
        token: 'some auth token',
      },
    };
    client.mutate({
      mutation: UPDATE_CUSTOMER_MUTATION,
      variables: {
        userId: user.id,
        firstName,
        ...
      },
      refetchQueries: [{
        query: CUSTOMER_MESSAGES_QUERY,
        variables: { userId: user.id },
        context,
      }],
      context,
    });

    The CUSTOMER_MESSAGES_QUERY above will be refetched using context.
    Normally queries are refetched using the original context they were first
    started with, but this provides a way to override the context, if needed.

    hwillson in #3852

  • Documentation updates.

    hwillson in #3841

Apollo Boost (0.1.15)

  • Various internal infrastructure changes related to building, bundling,
    testing, etc.
    hwillson in #3817

Apollo Cache (1.1.16)

  • Various internal infrastructure changes related to building, bundling,
    testing, etc.
    hwillson in #3817

Apollo Cache In-Memory (1.2.9)

  • Various internal infrastructure changes related to building, bundling,
    testing, etc.
    hwillson in #3817

Apollo Utilities (1.0.20)

  • Various internal infrastructure changes related to building, bundling,
    testing, etc.
    hwillson in #3817

Apollo GraphQL Anywhere (4.1.18)

  • Various internal infrastructure changes related to building, bundling,
    testing, etc.
    hwillson in #3817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant