Collection Function Examples

Any

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/any(d:d/UnitTypeActualRent%20le%201400)&$count=true

{
  "@odata.context": "https://h.api.crmls.org/RESO/OData/$metadata#Property",
  "@odata.count": 257822,
  "value": [
    {
      "@odata.etag": "W/\"MjAxMy0wMi0yMVQxMDo0OTowNC4zNy0wODowMA==\"",
      "AccessibilityFeatures": null,
	  .
	  .
	  .
      "ZoningDescription": null
    }
  ],
  "@odata.nextLink": "https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/any(d:d/UnitTypeActualRent%20le%201400)&$count=true&$skip=100"
}



https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/any(d:d/UnitTypeActualRent%20le%201400%20and%20d/UnitTypeBedsTotal%20gt%203)&$count=true

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/any(d:d/UnitTypeFurnished%20eq%20OData.Models.NumberFurnishedUnfurnished'F')&$count=true&$expand=PropertyUnits($select=UnitKeyNumeric,UnitTypeFurnished)

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/any(d:d/UnitTypeFurnished%20eq%20OData.Models.NumberFurnishedUnfurnished'F')&$count=true&$expand=PropertyUnits($select=UnitKeyNumeric,UnitTypeFurnished;$filter=UnitTypeFurnished%20ne%20null)

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/any(d:d/UnitTypeFurnished%20eq%20OData.Models.NumberFurnishedUnfurnished'F'%20and%20d/UnitTypeGarageSpaces+ne+null)&$count=true&$expand=PropertyUnits($select=UnitKeyNumeric,UnitTypeActualRent,UnitTypeGarageSpaces,UnitTypeFurnished)



All

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/all(d:d/UnitTypeActualRent%20le%201500%20and%20d/UnitTypeActualRent%20gt%200)&$count=true&$expand=PropertyUnits

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/all(d:d/UnitTypeActualRent%20le%201500%20and%20d/UnitTypeActualRent%20gt%200%20and%20d/UnitTypeBedsTotal%20gt%202)&$count=true&$expand=PropertyUnits

https://h.api.crmls.org/RESO/OData/Property?$filter=PropertyUnits/all(d:d/UnitTypeFurnished%20eq%20OData.Models.NumberFurnishedUnfurnished'F')&$count=true&$expand=PropertyUnits($select=UnitKeyNumeric,UnitTypeFurnished)