Organize better

This commit is contained in:
2023-11-29 21:58:33 +01:00
parent d1c3ac6079
commit fde93cb875
11 changed files with 175 additions and 74 deletions
+11
View File
@@ -0,0 +1,11 @@
import graphene
from games.graphql.types import Device
from games.models import Device as DeviceModel
class Query(graphene.ObjectType):
devices = graphene.List(Device)
def resolve_devices(self, info, **kwargs):
return DeviceModel.objects.all()