Added scoreboard initial design BOD-91
This commit is contained in:
@@ -33,6 +33,7 @@ export const QUERY_BODYSHOP = gql`
|
||||
appt_length
|
||||
stripe_acct_id
|
||||
ssbuckets
|
||||
scoreboard_target
|
||||
employees {
|
||||
id
|
||||
first_name
|
||||
@@ -83,6 +84,8 @@ export const UPDATE_SHOP = gql`
|
||||
invoice_tax_rates
|
||||
appt_length
|
||||
stripe_acct_id
|
||||
ssbuckets
|
||||
scoreboard_target
|
||||
employees {
|
||||
id
|
||||
first_name
|
||||
|
||||
16
client/src/graphql/scoreboard.queries.js
Normal file
16
client/src/graphql/scoreboard.queries.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const SUBSCRIPTION_SCOREBOARD = gql`
|
||||
subscription SUBSCRIPTION_SCOREBOARD($start: date!, $end: date!) {
|
||||
scoreboard(where: { _and: { date: { _gte: $start, _lte: $end } } }) {
|
||||
id
|
||||
painthrs
|
||||
bodyhrs
|
||||
date
|
||||
job {
|
||||
id
|
||||
ro_number
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user