Files
timetracker/games/graphql/queries/session.py
2023-11-30 17:35:44 +01:00

12 lines
271 B
Python

import graphene
from games.graphql.types import Session
from games.models import Session as SessionModel
class Query(graphene.ObjectType):
sessions = graphene.List(Session)
def resolve_sessions(self, info, **kwargs):
return SessionModel.objects.all()