Skip to content

Instantly share code, notes, and snippets.

@SaraVieira
Created March 30, 2018 18:27
Show Gist options
  • Save SaraVieira/2d1390acdf4948d2848c3f0a283234af to your computer and use it in GitHub Desktop.
Save SaraVieira/2d1390acdf4948d2848c3f0a283234af to your computer and use it in GitHub Desktop.
<template>
<ApolloQuery :query="query">
<template slot-scope="{ result: { loading, error, data } }">
</template>
</ApolloQuery>
</template>
<script>
import { GET_NAMES } from "../queries.js";
export default {
name: "Names",
data() {
return {
query: GET_NAMES
};
}
};
</script>
<style scoped>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment