Skip to content
Snippets Groups Projects

Remove startview

Merged Andrine Kirstine Gudbrandsen requested to merge remove-startview into main
30 files
+ 492
1158
Compare changes
  • Side-by-side
  • Inline
Files
30
import {gql} from '@apollo/client';
//Sets a user with an empty list
export const SET_USER = gql`
mutation SetUser($input: EmailInput) {
SetUser(input: $input){
//Updates user with savedList
export const UPDATE_USER = gql`
mutation UpdateUser($user: UserInput) {
UpdateUser(user: $user){
email
savedCountries {
favList {
countryID
isFav
isVis
description
countryName
}
visList {
countryID
countryName
}
}
}
`;
//Updates user with savedList
export const UPDATE_USER = gql`
mutation UpdateUser($input: UserInput) {
UpdateUser(input: $input){
email
savedCountries {
countryID
isFav
isVis
description
}
export const ADD_FAVOURITE = gql`
mutation AddFavourite($user: UserInput, $favourite: SavedCountryInput) {
AddFavourites(user: $user, favourite: $favourite) {
favList {
countryID
countryName
}
}
}
`;
export const ADD_VISITED = gql`
mutation AddVisited($user: UserInput, $visited: SavedCountryInput) {
AddVisited(user: $user, visited: $visited) {
visList {
countryID
countryName
}
}
}
`;
export const REMOVE_FAVOURITE = gql`
mutation RemoveFavourite($user: UserInput, $favourite: SavedCountryInput) {
RemoveFavourite(user: $user, favourite: $favourite) {
favList {
countryID
countryName
}
}
}
`;
export const REMOVE_VISITED = gql`
mutation RemoveVisited($user: UserInput, $visited: SavedCountryInput) {
RemoveVisited(user: $user, visited: $visited) {
visList {
countryID
countryName
}
}
}
`;
\ No newline at end of file
Loading