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

graphql2chartjs implementation for VueJs #1

Open
InosRahul opened this issue Apr 29, 2019 · 0 comments
Open

graphql2chartjs implementation for VueJs #1

InosRahul opened this issue Apr 29, 2019 · 0 comments
Labels
enhancement New feature or request hacktoberfest hacktoberfest

Comments

@InosRahul
Copy link


<ApolloQuery :query="query">
    <template slot-scope="{ result: { loading, error, data } }">
      <span v-if="loading">Loading...</span>
      <span v-else-if="error">An error occured</span>
      <section v-if="data">
        <ul v-if="data">
          <li :key="data.data" v-for="data in data.expenses">{{data.data}}{{data.label}}</li>
        </ul>
      </section>
    </template>
  </ApolloQuery>

Reading from your React implementation I was able to do this much, but when trying to execute

g2c.add(data,'bar');

data is not defined error is shown.
Can you please post some sample code implementing graphql2chartjs in Vue

@wawhal wawhal assigned praveenweb and unassigned wawhal May 1, 2019
@wawhal wawhal transferred this issue from hasura/graphql-engine Oct 16, 2019
@wawhal wawhal added the hacktoberfest hacktoberfest label Oct 16, 2019
@wawhal wawhal added the enhancement New feature or request label Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants