Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

PeteGabriel/HorseRacing_Graphql

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •