import { gql } from "apollo-boost"; export const QUERY_BODYSHOP = gql` query QUERY_BODYSHOP { bodyshops(where: { associations: { active: { _eq: true } } }) { address1 address2 city country created_at email federal_tax_id id insurance_vendor_id logo_img_path md_ro_statuses md_order_statuses shopname state state_tax_id updated_at zip_post region_config md_responsibility_centers messagingservicesid employees { id first_name last_name employee_number cost_center } } } `; export const QUERY_SHOP_ID = gql` query QUERY_SHOP_ID { bodyshops(where: { associations: { active: { _eq: true } } }) { id } } `; export const UPDATE_SHOP = gql` mutation UPDATE_SHOP($id: uuid, $shop: bodyshops_set_input!) { update_bodyshops(where: { id: { _eq: $id } }, _set: $shop) { returning { id } } } `;