PeteGabriel / HorseRacing_Graphql

A graphql api that gives horse racing events and it's outcomes.

Home Page:https://horseracing-graphql.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

horseracing-graphql.herokuapp.com

This is a project to play around with GraphQL using Typescript.

Screenshot-2022-10-27-at-17-54-49.png

You can get events or a event by its id. For this you should use the query events or event(id). Some examples can be found below:

query {
  events {
    eventId
    sportId
    startTime
    description
    raceName
    course
    length
  }
}
{
  "eventId": 204633
}
query RaceById($eventId: Int!) {
  race(eventId: $eventId) {
    eventId
    sportId
    startTime
    description
    raceName
    going
    course
    length
    horses {
      id
      name
      jockey
      trainer
      age
      weight
      number
      lastRanDaysAgo
      form
      startingPrice
      odd
    }
  }
}

About

A graphql api that gives horse racing events and it's outcomes.

https://horseracing-graphql.herokuapp.com/


Languages

Language:TypeScript 86.5%Language:JavaScript 6.9%Language:HTML 6.4%Language:Shell 0.2%