Added employee email validation IO-421

This commit is contained in:
Patrick Fic
2020-12-16 17:12:23 -08:00
parent aff73cb6e6
commit 3a4b6b2fc3
7 changed files with 78 additions and 1 deletions

View File

@@ -59,3 +59,11 @@ export const DELETE_EMPLOYEE = gql`
}
}
`;
export const QUERY_USERS_BY_EMAIL = gql`
query QUERY_USERS_BY_EMAIL($email: String!) {
users(where: { email: { _ilike: $email } }) {
email
}
}
`;