summaryrefslogtreecommitdiffstats
path: root/src/graphql/query.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use only one position per userSanto Cariotti2024-10-181-23/+5
|
* Use `AppState` instead of `String` using some traitsSanto Cariotti2024-09-161-7/+7
|
* Each alert has text{1,2,3} for the three possible areaSanto Cariotti2024-09-121-2/+7
| | | | Alert level is moved to the notification struct
* Filter notifications by optional id and optional seenSanto Cariotti2024-09-081-2/+3
|
* Use submodules mutations and query for typesSanto Cariotti2024-09-071-6/+6
|
* Notification must be filtered by seen fieldSanto Cariotti2024-09-031-2/+3
|
* Add notification typeSanto Cariotti2024-09-031-0/+21
|
* Add user query used to find an user by idSanto Cariotti2024-09-031-1/+18
|
* Add name and address fields for usersSanto Cariotti2024-09-031-1/+1
|
* Add examples on docSanto Cariotti2024-09-031-0/+32
|
* Add filter for alert by idSanto Cariotti2024-08-301-1/+2
|
* Add alertsSanto Cariotti2024-08-261-1/+11
| | | | | | | | | | | | | | | | | | | | | A payload for alert creation can be ``` { "query": "mutation NewAlert($input: AlertInput!) { newAlert(input: $input) { id createdAt level } }", "variables": { "input": { "points": [ { "latitude": 40.73061, "longitude": -73.935242 }, { "latitude": 40.741895, "longitude": -73.989308 }, { "latitude": 40.712776, "longitude": -74.005974 }, { "latitude": 40.73061, "longitude": -73.935242 }, ], "level": "TWO" } } } ```
* Add `lastPositions` query with filter by `movingActivity` paramSanto Cariotti2024-08-231-0/+12
|
* Add docSanto Cariotti2024-08-231-0/+2
|
* Filter positions by user idSanto Cariotti2024-08-231-1/+2
|
* Add position type and query on itSanto Cariotti2024-08-221-1/+11
|
* Add paginationSanto Cariotti2024-08-221-2/+7
| | | | Query is `users(limit: X offset Y)` with defaults X=20 Y=0
* Authentication for endpointsSanto Cariotti2024-08-211-1/+1
|
* Reformat types modSanto Cariotti2024-08-211-21/+3
|
* Add usersSanto Cariotti2024-08-211-23/+21
| | | | Query must be something like '{users { id, email, password, isAdmin }}'
* Reformat graphql modSanto Cariotti2024-08-211-0/+36