habralab / garnet-team

Habr Pet-Projects Battle Contest: Group Activity and Rating Network
https://garnet.pet-project.habr.com
MIT License
10 stars 0 forks source link

#223 teamsListByUser информация о количестве участников и проектов команды #224

Closed gfg7 closed 10 months ago

gfg7 commented 10 months ago

Пример запроса

query ($input: TeamsListInput!) {
  teamsListByUser(input: $input) {
    teams {
      id
      ownerUserId
      projectCount
      participantCount
      teamParticipantAvatarUrls
    }
  }
}

Пример ответа

{
  "data": {
    "teamsListByUser": {
      "teams": [
        {
          "id": "654543f6ab07971943521a4b",
          "ownerUserId": "system",
          "projectCount": 0,
          "participantCount": 1,
          "teamParticipantAvatarUrls": [
            "test_url"
          ]
        }
      ]
    }
  }
}
gfg7 commented 10 months ago

@Demorey жду список команд в ивенте https://github.com/habralab/garnet-team/blob/1420c4ce9bd9f4af96447164947c8501b46f60ea/features/project/server/Garnet.Projects.Events/Project/ProjectDeletedEvent.cs#L3

Demorey commented 10 months ago

@Demorey жду список команд в ивенте

https://github.com/habralab/garnet-team/blob/1420c4ce9bd9f4af96447164947c8501b46f60ea/features/project/server/Garnet.Projects.Events/Project/ProjectDeletedEvent.cs#L3

Уже добавил, ждет одобрения @picolino https://github.com/habralab/garnet-team/pull/222

gfg7 commented 10 months ago

https://github.com/habralab/garnet-team/pull/234