Closed silvesterwali closed 1 year ago
<script> import { gql } from 'nuxt-graphql-request'; export default { beforeMount(){ this.fetchSomething() }, methods: { async fetchSomething() { const query = gql` { Movie(title: "Inception") { releaseDate actors { fullname # "Cannot query field 'fullname' on type 'Actor'. Did you mean 'name'?" } } } `; try { const data = await this.$graphql.default.request(endpoint, query); console.log(JSON.stringify(data, undefined, 2)); } catch (error) { console.error(JSON.stringify(error, undefined, 2)); process.exit(1); } }, }, }; </script>
hi there.. i just got this error when test using jest . my test just like below
the #graphql.default is not undefined in test mode ..but running di developer process. thanks for any feedback
hi there.. i just got this error when test using jest . my test just like below
the #graphql.default is not undefined in test mode ..but running di developer process. thanks for any feedback