This repository was archived by the owner on Jul 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Got an unexpected keyword argument 'filters' #245
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Argument filters shows up in GraphiQL, but still got an error. It works fine before upgrading to v3.
Related code:
he0119/smart-home@9922c78#diff-af3602ede1befa32df28d961add5b48aaf07992465fb6d0f1dbb50e4a0568cdbR79-R85
@gql.django.type(models.Device, filters=DeviceFilter, order=DeviceOrder)
class Device(relay.Node):
name: auto
device_type: auto
location: auto
created_at: auto
edited_at: auto
is_online: auto
online_at: auto
offline_at: auto
token: auto
# FIXME: Device.autowatering_data() got an unexpected keyword argument 'filters'
@gql.django.connection(
gql.django.ListConnectionWithTotalCount[AutowateringData],
filters=AutowateringDataFilter,
order=AutowateringDataOrder,
)
def autowatering_data(self, info) -> Iterable[models.AutowateringData]:
return models.AutowateringData.objects.all()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed

