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

Bump strawberry-graphql from 0.120.0 to 0.121.1 #344

Merged
merged 4 commits into from
Jul 28, 2022

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 28, 2022

Bumps strawberry-graphql from 0.120.0 to 0.121.1.

Release notes

Sourced from strawberry-graphql's releases.

🍓 0.121.1

This release adds a backward compatibility layer with libraries that specify a custom get_result.

🍓 0.121.0

This release adds support for overriding the default resolver for fields.

Currently the default resolver is getattr, but now you can change it to any function you like, for example you can allow returning dictionaries:

@strawberry.type
class User:
    name: str
@​strawberry.type
class Query:
@​strawberry.field
def user(self) -> User:
return {"name": "Patrick"}  # type: ignore
schema = strawberry.Schema(
query=Query,
config=StrawberryConfig(default_resolver=getitem),
)
query = "{ user { name } }"
result = schema.execute_sync(query)

Changelog

Sourced from strawberry-graphql's changelog.

0.121.1 - 2022-07-27

This release adds a backward compatibility layer with libraries that specify a custom get_result.

Contributed by Patrick Arminio via [PR #2038](strawberry-graphql/strawberry#2038)

0.121.0 - 2022-07-23

This release adds support for overriding the default resolver for fields.

Currently the default resolver is getattr, but now you can change it to any function you like, for example you can allow returning dictionaries:

@strawberry.type
class User:
    name: str
@​strawberry.type
class Query:
@​strawberry.field
def user(self) -> User:
return {"name": "Patrick"}  # type: ignore
schema = strawberry.Schema(
query=Query,
config=StrawberryConfig(default_resolver=getitem),
)
query = "{ user { name } }"
result = schema.execute_sync(query)

Contributed by Patrick Arminio via [PR #2037](strawberry-graphql/strawberry#2037)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [strawberry-graphql](https://github.com/strawberry-graphql/strawberry) from 0.120.0 to 0.121.1.
- [Release notes](https://github.com/strawberry-graphql/strawberry/releases)
- [Changelog](https://github.com/strawberry-graphql/strawberry/blob/main/CHANGELOG.md)
- [Commits](strawberry-graphql/strawberry@0.120.0...0.121.1)

---
updated-dependencies:
- dependency-name: strawberry-graphql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 28, 2022
@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #344 (aaf5107) into master (25573ec) will not change coverage.
The diff coverage is n/a.

❗ Current head aaf5107 differs from pull request most recent head c4c5974. Consider uploading reports for the commit c4c5974 to get more accurate results

@@           Coverage Diff           @@
##           master     #344   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          32       32           
  Lines        1099     1099           
  Branches      185      185           
=======================================
  Hits         1097     1097           
  Partials        2        2           

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 25573ec...c4c5974. Read the comment docs.

@ghost
Copy link

ghost commented Jul 28, 2022

Fixes #340

@KundaPanda
Copy link
Owner

Fixes #340

Not entirely, 0.121.0 was still included as a compatible dependency, although it is not.

@KundaPanda KundaPanda merged commit 30659f8 into master Jul 28, 2022
@dependabot dependabot bot deleted the dependabot/pip/strawberry-graphql-0.121.1 branch July 28, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant