Add notifications support.

This commit is contained in:
Patrick Fic
2025-10-24 10:36:30 -07:00
parent 0809a01c90
commit 75ee01e896
12 changed files with 236 additions and 11 deletions

View File

@@ -23,3 +23,11 @@ export const QUERY_SHOP_ID = gql`
}
}
`;
export const UPDATE_FCM_TOKEN = gql`
mutation UPDATE_FCM_TOKEN($email: String!, $token: jsonb!) {
update_users(where: {email: {_eq: $email}}, _append: {fcmtokens: $token}) {
affected_rows
}
}`;