Skip to content

Commit

Permalink
Strawberry >=0.233 compatibility.
Browse files Browse the repository at this point in the history
Federation uses the strawberry `Info` object.
  • Loading branch information
coady committed May 30, 2024
1 parent 62b1b54 commit ae1b481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions graphique/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def select(self, info: Info, length: Optional[int] = None) -> pa.Table:

@classmethod
@no_type_check
def resolve_reference(cls, info, **keys) -> Self:
def resolve_reference(cls, info: Info, **keys) -> Self:
"""Return table from federated keys."""
self = getattr(info.root_value, cls.field)
queries = {name: Filter(eq=[keys[name]]) for name in keys}
return self.filter(Info(info, None), **queries)
return self.filter(info, **queries)

def columns(self, info: Info) -> dict:
"""fields for each column"""
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pyarrow>=16
strawberry-graphql[asgi,cli]>=0.221
strawberry-graphql[asgi,cli]>=0.233

0 comments on commit ae1b481

Please sign in to comment.