Skip to content

Commit

Permalink
feat: initial relay integration support (#65)
Browse files Browse the repository at this point in the history
* feat: initial relay integration support

* feat: implement node()

* refactor: use ListConnection as a base for connections

* fix: fix broken tests on CI

* chore: add a RELEASE.md file

* feat: add sqlakeyset integration

* fix: remove mentions of "django" in the code

* fix: some more fixes

* perf: cache id_attr resolution

* docs: add some TODO comments for the future
  • Loading branch information
bellini666 authored Dec 6, 2023
1 parent af6a48c commit 1be8a65
Show file tree
Hide file tree
Showing 12 changed files with 2,391 additions and 26 deletions.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Release type: minor

Initial relay connection/node support using Strawberry's relay integration.
19 changes: 18 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ sqlalchemy = {extras = ["asyncio"], version = ">=1.4"}
strawberry-graphql = ">=0.95"
sentinel = ">=0.3,<1.1"
greenlet = {version = ">=3.0.0rc1", python = ">=3.12"}
sqlakeyset = "^2.0.1695177552"

[tool.poetry.group.dev.dependencies]
asyncpg = ">=0.28,<0.30"
Expand Down Expand Up @@ -251,6 +252,7 @@ src = ["src/strawberry_sqlalchemy_mapper", "tests"]

[tool.ruff.per-file-ignores]
"tests/*" = ["RSE102", "SLF001", "TCH001", "TCH002", "TCH003", "ANN001", "ANN201", "PLW0603", "PLC1901", "S603", "S607", "B018"]
"src/strawberry_sqlalchemy_mapper/field.py" = ["TCH001", "TCH002", "TCH003"]

[tool.ruff.isort]
known-first-party = ["strawberry-sqlalchemy-mapper"]
Expand Down
10 changes: 9 additions & 1 deletion src/strawberry_sqlalchemy_mapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
del version, PackageNotFoundError


from .field import connection, field, node
from .loader import StrawberrySQLAlchemyLoader
from .mapper import StrawberrySQLAlchemyMapper

__all__ = ["__version__", "StrawberrySQLAlchemyLoader", "StrawberrySQLAlchemyMapper"]
__all__ = [
"__version__",
"StrawberrySQLAlchemyLoader",
"StrawberrySQLAlchemyMapper",
"field",
"node",
"connection",
]
Loading

0 comments on commit 1be8a65

Please sign in to comment.