Remove active employees from dropdowns IO-677

This commit is contained in:
Patrick Fic
2021-02-16 10:49:32 -08:00
parent 1201d78d99
commit 5b5cf579b8
3 changed files with 21 additions and 3 deletions

View File

@@ -18,6 +18,24 @@ export const QUERY_EMPLOYEES = gql`
}
`;
export const QUERY_ACTIVE_EMPLOYEES = gql`
query QUERY_ACTIVE_EMPLOYEES {
employees(where: { active: { _eq: true } }) {
last_name
id
first_name
employee_number
active
termination_date
hire_date
flat_rate
rates
pin
user_email
}
}
`;
export const INSERT_EMPLOYEES = gql`
mutation INSERT_EMPLOYEES($employees: [employees_insert_input!]!) {
insert_employees(objects: $employees) {