I'm new to vue-apollo 4 and I just can't get it to work with my simple Graphql API
I already:
- allowed edge://flags/#allow-insecure-localhost (enabled)
- created and added to trusted authories certicates (windows)
- package.json scripts: "dev": "set NODE_TLS_REJECT_UNAUTHORIZED=0 && nuxt dev --https --ssl-cert server.crt --ssl-key server.key"
On my app.vue
<script lang="ts" setup>
import { useQuery, useResult } from '@vue/apollo-composable'
import { gql } from 'graphql-tag'
const ql = gql`
query{
hello
}
`
const { loading, result } = useQuery(ql)
console.log(result)