Function getRaceById

  • Returns a race by the given ID (if it exists).

    Race is identified by its stringified ObjectID.

    Usage

    const raceId: string = "57da777687ecf89";
    const race: Race = await sdk.getRaceById({ raceId });

    Parameters

    • params: {
          raceId: string;
      }
      • raceId: string

        ID of the race to fetch.

    Returns Promise<RaceWithParticipants>

Generated using TypeDoc