IO-868 IO-706 Unique vendor & employee names.
This commit is contained in:
@@ -21,6 +21,18 @@ export const QUERY_VENDOR_BY_ID = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const CHECK_VENDOR_NAME = gql`
|
||||
query CHECK_VENDOR_NAME($name: String!) {
|
||||
vendors_aggregate(where: { name: { _ilike: $name } }) {
|
||||
aggregate {
|
||||
count
|
||||
}
|
||||
nodes {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_VENDOR = gql`
|
||||
mutation UPDATE_VENDOR($id: uuid!, $vendor: vendors_set_input!) {
|
||||
|
||||
Reference in New Issue
Block a user