devices
Arguments:
order - String
- Order in which records will be sorted. Correct values are "asc
" for ascending and "desc
" for descending . Default = "asc
"orderBy - String
- Field name used for sorting. For example { order: "desc
", orderBy: "updatedAt
" } returns most recently updated items firstsearch - String
- Used to search for match in multiple fields. It appends a new field (score) to returned items. For example query devices { search: "teltonika
", order: "desc
", orderby: "score
" } returns devices that have "teltonika" string in one of the fields and places best matches firstskip - Int
- Used for pagination. Indicates how many records starting from the first one should be skipped. For example, { skip: 20, take: 10 } equals 3 page and 10 items for each page. Default =0
take - Int
- Used for pagination. Indicates how many records should be returned in the current request. For example, { skip: 20, take: 10 } equals 3 page and 10 items for each page. Default value is 25. Maximum amount is 1000 . Default =25
filter - DevicesFilter
Default = {}geoSearch - GeoSearchInput
- Returns list of devices that are inside of selected rectangle. For example, for points [lat:49, lng: 16] as bottomLeft and [lat:54, lng:24] as upperRight, it's going to return all devices in PolandgeoSearchCircle - GeoSearchCircleInput
- Returns list of devices within radius of a selected pointkeysOwner - String
- Returns list of devices to which an address has keys. For example, User with address user_1 is the owner of keys key_1 and key_2, key_1 is for device_1 and key_2 is for device_2. There are also user_2, device_3 and key_3. The method will return [device_1, device_2]. This is helpful when user need a list of devices he can interact withincludeRemoved - Boolean
- By default the list will not include Devices which have been removed by the Supplier. To also get Devices removed, set this flag to true. Default =false
Response:
Returns a PaginatedDevices!
Example
Query:
Variables:
Response:
Last updated