Function getAll

  • Parameters

    • Optional fields: (keyof Country)[]

      The fields to keep in the respoonse

    Returns Promise<Country[]>

    All the countries

    Description

    Get all the countries

    Example

    const countries = await getAll();
    const countries = await getAll(['name', 'capital']);