Giveth / impact-graph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement new web service to check if someone donated to a project in an specific qfRound or not

mohammadranjbarz opened this issue · comments

  • Suggested webServie name:
    doesDonatedToProjectInQfRound
  • Inputs
    • projectId
    • qfRoundId
    • userId @MohammadPCh or you prefer walletAddress ?
  • Response
    Should return just a boolean
    @MohammadPCh @MoeNick Please let me know if you need something more for this webservie
    related to Giveth/giveth-dapps-v2#2958

It's all fine. thank you

@MoeNick The backend part is merged now

@MohammadPCh You can call it in this way

query (
   $projectId: Int!,
   $qfRoundId: Int!,
   $userId: Int!
  ) {
    doesDonatedToProjectInQfRound(
      projectId: $projectId
      qfRoundId: $qfRoundId
      userId: $userId
    )
  }

and it would return a boolean

@mohammadranjbarz - you are great!!