import graphene
from graphene_django.types import DjangoObjectType
from .models import Activity


class ActivityType(DjangoObjectType):


    class Meta:
        model = Activity


class Query(graphene.AbstractType):
    all_activities = graphene.List(ActivityType)

    def resolve_all_activities(self, args, context, info):
        return Activity.objects.all()

840c0086ae81273fd55a250b6d29cacbf7e7ffff
<mask token>


class Query(graphene.AbstractType):
    <mask token>
    <mask token>

<mask token>


class Query(graphene.AbstractType):
    all_activities = graphene.List(ActivityType)

    def resolve_all_activities(self, args, context, info):
        return Activity.objects.all()

<mask token>


class ActivityType(DjangoObjectType):


    class Meta:
        model = Activity


class Query(graphene.AbstractType):
    all_activities = graphene.List(ActivityType)

    def resolve_all_activities(self, args, context, info):
        return Activity.objects.all()

import graphene
from graphene_django.types import DjangoObjectType
from .models import Activity


class ActivityType(DjangoObjectType):


    class Meta:
        model = Activity


class Query(graphene.AbstractType):
    all_activities = graphene.List(ActivityType)

    def resolve_all_activities(self, args, context, info):
        return Activity.objects.all()
