kambed / FoodzillaFrontendIos

Foodzilla - Frontend Ios of TUL project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FE iOS: Save search

RadekBucki opened this issue · comments

  • Use GraphQL mutation:
mutation {
    addSavedSearch(input: {
        phrase: "String"
        filters: [
            {
                attribute: "name"
                equals: "abc"
            }
        ]
        sort: [
            {
                attribute: "name"
                direction: "ASC"
            }
        ]
    }) {
        id
        phrase
        filters {
            attribute
            equals
        }
        sort {
            attribute
            direction
        }
    }
}
  • Use GraphQL query
{
    savedSearch {
        id
        phrase
        filters {
            attribute
            equals
        }
        sort {
            attribute
            direction
        }
    }
}
  • Use GraphQL mutation
mutation {
    deleteSavedSearch(id: 1) {
        id
        phrase
        filters {
            attribute
            equals
        }
        sort {
            attribute
            direction
        }
    }
}