Additional Changes for calculations of RPS %.
This commit is contained in:
@@ -4,6 +4,7 @@ export const QUERY_BODYSHOP = gql`
|
||||
bodyshops {
|
||||
id
|
||||
shopname
|
||||
targets
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user