Silverhill / coupon-backend

MIT License
0 stars 0 forks source link

Endpoint to get couponsByCampaignAndHunter #115

Closed fabricioflores closed 6 years ago

fabricioflores commented 6 years ago

this closes #111

Query:

{
  couponsByCampaignAndHunter(campaignId:"5aef2fd0afabbc0fd749439a", hunterId:"5aef2fd0afabbc0fd749439c"){
    id
    status
    code
  }
}

Response:

{
  "data": {
    "couponsByCampaignAndHunter": [
      {
        "id": "5af89e325fdc583fb34565dd",
        "status": "hunted",
        "code": "ZXBs4I"
      }
    ]
  }
}