Using GraphQL Document variables
<script setup>
import { gql } from 'nuxt-graphql-request/utils';
const { $graphql } = useNuxtApp();
const fetchSomething = async () => {
const query = gql``;
const variables = { first: 10 };
const planets = await this.$graphql.default.request(query, variables);
};
</script>