Open csechrist opened 1 month ago
This pull request enhances the SQLAlchemy type mapper to allow for the addition of directives, improving its compatibility with GraphQL federation. The changes primarily affect the mapper.py
file, with updates to the type
decorator and convert
method. Additionally, the PR updates several dependencies in the .pre-commit-config.yaml
file.
classDiagram
class Mapper {
+type(model: Type[BaseModelType], make_interface: bool, use_federation: bool, directives: Union[Sequence[object], None] = ())
+convert(type_: Any) Any
}
note for Mapper "The 'type' method now accepts 'directives' to enhance GraphQL federation compatibility."
Change | Details | Files |
---|---|---|
Add support for directives in the SQLAlchemy type mapper |
|
src/strawberry_sqlalchemy_mapper/mapper.py |
Update pre-commit hook dependencies |
|
.pre-commit-config.yaml |
Hi, thanks for contributing to Strawberry π!
We noticed that this PR is missing a RELEASE.md
file. We use that to automatically do releases here on GitHub and, most importantly, to PyPI!
So as soon as this PR is merged, a release will be made π.
Here's an example of RELEASE.md
:
Release type: patch
Description of the changes, ideally with some examples, if adding a new feature.
Release type can be one of patch, minor or major. We use semver, so make sure to pick the appropriate type. If in doubt feel free to ask :)
Sounds great! I will get tests added in and get the documentation updated this week!
Hi, @csechrist , any updates?
Description
Allow for directives to be added to the SQLAlchemy type mapper. This enables us to use it with GraphQL federation more effectively
Types of Changes
Issues Fixed or Closed by This PR
*
Checklist
Summary by Sourcery
Enhance the SQLAlchemy type mapper to support directives, facilitating better integration with GraphQL federation, and update pre-commit hooks to their latest versions.
Enhancements:
Build: