WIP Vendors list table + order parts.
This commit is contained in:
48
client/src/graphql/vendors.queries.js
Normal file
48
client/src/graphql/vendors.queries.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import { gql } from "apollo-boost";
|
||||
|
||||
export const QUERY_VENDOR_BY_ID = gql`
|
||||
query QUERY_VENDOR_BY_ID($id: uuid!) {
|
||||
vendors_by_pk(id: $id) {
|
||||
zip
|
||||
terms
|
||||
taxid
|
||||
street2
|
||||
state
|
||||
prompt_discount
|
||||
name
|
||||
id
|
||||
favorite
|
||||
email
|
||||
due_date
|
||||
display_name
|
||||
discount
|
||||
country
|
||||
cost_center
|
||||
city
|
||||
street1
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_VEHICLE = gql`
|
||||
mutation UPDATE_VEHICLE($vehId: uuid!, $vehicle: vehicles_set_input!) {
|
||||
update_vehicles(where: { id: { _eq: $vehId } }, _set: $vehicle) {
|
||||
returning {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_ALL_VENDORS = gql`
|
||||
query QUERY_ALL_VENDORS {
|
||||
vendors {
|
||||
name
|
||||
id
|
||||
favorite
|
||||
street1
|
||||
cost_center
|
||||
city
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user