These are the mappings of the Open Weather Map API endpoints to the GraphQL schema. Each of these fields corresponds to a specific endpoint in the Open Weather Map API.

When used in a query, each one of these fields will make a request to the corresponding endpoint and contribute to the usage limits set by Open Weather Map.

Checkout the Queries and Mutations pages for more information on how to use these fields.

query {
  api {
    current # /weather
    oneCall {
      currentAndForecast # /onecall
      daySummary # /onecall/day_summary
      overview # /onecall/overview
      timeMachine # /onecall/timemachine
    }
    airPollution {
      current # /air_pollution
      forecast # /air_pollution/forecast
      history # /air_pollution/history
    }
    forecast {
      hourly # /forecast/hourly
      five # /forecast
      sixteen # /forecast/daily
      thirty # /forecast/climate
    }
    geocoding {
      direct # /direct
      zip # /zip
      reverse # /reverse
    }
    trigger {
      list # /triggers
      get # /triggers/{id}
      history {
        list # /history
        get # /history/{historyId}
      }
    }
  }
}
mutation {
  api {
    trigger {
      add # /triggers
      update # /triggers/{id}
    }
  }
}