IO-921 Multiple Prod List configurations.

This commit is contained in:
Patrick Fic
2021-05-03 16:57:03 -07:00
parent 49603e5951
commit 4e78f8223f
17 changed files with 387 additions and 48 deletions

View File

@@ -21,6 +21,22 @@ export const UPDATE_ASSOCIATION = gql`
returning {
id
active
authlevel
default_prod_list_view
}
}
}
`;
export const UPDATE_ACTIVE_PROD_LIST_VIEW = gql`
mutation UPDATE_ACTIVE_PROD_LIST_VIEW($assocId: uuid, $view: String) {
update_associations(
where: { id: { _eq: $assocId } }
_set: { default_prod_list_view: $view }
) {
returning {
id
default_prod_list_view
}
}
}

View File

@@ -14,6 +14,7 @@ export const QUERY_BODYSHOP = gql`
associations {
authlevel
useremail
default_prod_list_view
user {
authid
email