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

feat: Expose possibleTypes on cache #906

Merged
merged 1 commit into from Jun 7, 2021

Conversation

budde377
Copy link
Collaborator

@budde377 budde377 commented May 30, 2021

This PR exposes the possibleTypes of normalize allowing users to specify type inheritance

The field is released in 0.5.3 (see gql-dart/ferry#199).

The map can be generated with graphql_codegen.

Breaking changes

  • None

Fixes / Enhancements

  • Added possibleTypes field to cache.
  • Passed possibleTypes to normalize.

Docs

  • Expose possibleTypes from normalize on cache.

@budde377 budde377 force-pushed the feat-expose-possibletypeof branch from a4f5f2b to daf30fa Compare June 1, 2021 20:56
@budde377 budde377 changed the title feat: Expose possibleTypeOf on cache feat: Expose possibleTypes on cache Jun 1, 2021
@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #906 (daf30fa) into beta (cb5b789) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             beta     #906   +/-   ##
=======================================
  Coverage   31.88%   31.88%           
=======================================
  Files           8        8           
  Lines         207      207           
=======================================
  Hits           66       66           
  Misses        141      141           
Flag Coverage Δ
graphql_client ∅ <ø> (∅)
graphql_flutter 31.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb5b789...daf30fa. Read the comment docs.

@micimize micimize merged commit 49483ad into zino-hofmann:beta Jun 7, 2021
HofmannZ pushed a commit that referenced this pull request Jun 7, 2021
# [5.0.0](v4.0.1...v5.0.0) (2021-06-07)

### Bug Fixes

* **ci:** graphql coverage ([d47852a](d47852a))
* **ci:** refine dartanalyzer for example ([e7b5830](e7b5830))
* **ci:** stop using test_coverage ([28e499e](28e499e))
* **ci:** try dart analyze ([61e9f81](61e9f81))
* **client:** always only pull broadcast stream once ([1b6a9e6](1b6a9e6))
* **client:** AuthLink getToken result should be nullable. ([7f36a68](7f36a68))
* **client:** fix rebroadcasting for regular queries ([3245e27](3245e27))
* **client:** fix rebroadcasting for regular queries ([0c6b0e7](0c6b0e7))
* **client:** hotfix dataIdFromObject passthrough in cache.readQuery ([e3e04f8](e3e04f8))
* **examples:** upgrade to nullsafety ([fe69bce](fe69bce))
* **flutter:** make sure starwars works with nullsafe changes ([6d27c64](6d27c64))
* **graphql:** only return subscriptions eagerly from cache when a cache-enabled policy is used ([8af2edd](8af2edd))

### Features

* **client:** Capture stack traces in UnknownExceptions ([4b36c09](4b36c09))
* **client:** null safe by default ([802185a](802185a))
* **client:** SocketClient with web_socket_channel ([6631f42](6631f42))
* Expose `possibleTypes` on cache ([#906](#906)) ([49483ad](49483ad))

### BREAKING CHANGES

* **client:** Null Safety
@HofmannZ
Copy link
Member

HofmannZ commented Jun 7, 2021

🎉 This PR is included in version 5.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants