GV Templates API changes in YOP
February 4th, 2022
All new objects called all_slots in OpportunityType. This object is added as a connection_type and added arguments sort arguments and start_date filter.  When the date filter is selected in opportunity search page, pass that date argument in start_date filter to filter slots which are greater than the selected date.  Along with this filter use sort param to sort. Use the first object from slots connection to show the start_date in opportunity card. Also added a key called opportunity_applications_count, use this key to show the applications count for that slot.

Sample query for all_sorts:

all_slots(sort: start_date, sort_direction: desc, start_date: "2021-03-16"){
      nodes{
        status
        start_date
        opportunity_applications_count
      }
    }

Added filter argument in sdg_goals API endpoint. This can be used to filter out sdg goals which has active opportunities.

query{
  sdgGoals(active_opportunities: true){
    id
  }
}
X
Crafted by