Skip to content

Commit

Permalink
Rewards integration with AftermarketDevice (#62)
Browse files Browse the repository at this point in the history
* WIP: Rewards integration with AftermarketDevice

* More tests for aftermarket dvice earnings

* Fix issues from PR comments

* Use nested query and resolvers

* deduplicate query summary from resolvers
  • Loading branch information
0xdev22 authored Nov 14, 2023
1 parent 40fb88e commit 5707b35
Show file tree
Hide file tree
Showing 8 changed files with 1,154 additions and 107 deletions.
9 changes: 9 additions & 0 deletions gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ models:
resolver: true
manufacturer:
resolver: true
earnings:
resolver: true
extraFields:
VehicleID:
type: "*int"
Expand Down Expand Up @@ -134,6 +136,13 @@ models:
extraFields:
VehicleID:
type: "int"
AftermarketDeviceEarnings:
fields:
history:
resolver: true
extraFields:
AftermarketDeviceID:
type: "int"
Earning:
fields:
aftermarketDevice:
Expand Down
Loading

0 comments on commit 5707b35

Please sign in to comment.