Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not refetch data on change graphql query #12

Open
fatuk opened this issue Jun 21, 2018 · 1 comment
Open

Not refetch data on change graphql query #12

fatuk opened this issue Jun 21, 2018 · 1 comment

Comments

@fatuk
Copy link

fatuk commented Jun 21, 2018

I was trying to implement change per page behaviour. And polymer-apollo-client doesn't update data from server.

<graphql-query
      hold="[[shouldHold]]"
      result="{{alertsData}}">
      query {
        alertsAllHosts(sortBy: {
          field: "reported_at",
          direction: "ASC"
        }, first: {{first}}) {
          _id
          title
        }
      }
  </graphql-query>
@paales
Copy link
Contributor

paales commented Oct 7, 2018

@fatuk You should pass the arguments via the variables instead of using the template engine. I don't think it can properly handle the dynamic query templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants