Additional Changes for calculations of RPS %.

This commit is contained in:
Patrick Fic
2020-10-16 15:14:25 -07:00
parent c94f525a3e
commit 584f43bc4e
27 changed files with 504 additions and 115 deletions

View File

@@ -4,6 +4,7 @@ export const QUERY_BODYSHOP = gql`
bodyshops {
id
shopname
targets
}
}
`;

View File

@@ -1,9 +1,16 @@
import gql from "graphql-tag";
export const QUERY_GROUPS_BY_MAKE_TYPE = gql`
query QUERY_GROUPS_BY_MAKE_TYPE($make: String!, $type: String) {
query QUERY_GROUPS_BY_MAKE_TYPE(
$make: String!
$type: String
$isNull: Boolean
) {
veh_groups(
where: { _and: { make: { _eq: $make } }, type: { _eq: $type } }
where: {
_and: { make: { _eq: $make } }
type: { _eq: $type, _is_null: $isNull }
}
) {
id
group