---
title: "Comment by Tina Holly on \"How I Queried Hashnode's GraphQL API to display my hashnode blog posts on my Nuxt Website\" | Hashnode"
description: "Hello 👋 Interesting post! The user -&gt; publications -&gt; post query appears to return only 6 entries and not support pagination. Have you found an undocumen"
url: "https://hashnode.com/posts/how-i-queried-hashnodes-graphql-api-to-display-my-hashnode-blog-posts-on-my-nuxt-website/5ddad5301d03daa468a991c0/comment/5f28f93f09567e0dc187f16c"
---

[Discussion](https://hashnode.com/posts/how-i-queried-hashnodes-graphql-api-to-display-my-hashnode-blog-posts-on-my-nuxt-website/5ddad5301d03daa468a991c0)

Comment [How I Queried Hashnode's GraphQL API to display my hashnode blog posts on my Nuxt Website](https://hashnode.com/posts/how-i-queried-hashnodes-graphql-api-to-display-my-hashnode-blog-posts-on-my-nuxt-website/5ddad5301d03daa468a991c0)

[Tina Holly](https://hashnode.com/@tinaciousdesign)

[Aug 4, 2020](https://hashnode.com/posts/how-i-queried-hashnodes-graphql-api-to-display-my-hashnode-blog-posts-on-my-nuxt-website/5ddad5301d03daa468a991c0/comment/5f28f93f09567e0dc187f16c)

Hello 👋 Interesting post!

The **user -> publications -> post** query appears to return only 6 entries and not support pagination. Have you found an undocumented workaround or an alternative query?

I also noticed your post detail page no longer works on your Nuxt site.

I also just wanted to note a security concern you may want to address—your API key is exposed in the Authorization header. You may not be aware, but this token allows both read and write privileges. A bad actor could create posts on your blog without you knowing since your key is exposed.

From the developer dashboard:

> Personal Access Token is like a private key to your Hashnode account \[...\] **Never disclose your access tokens and always keep them private.**

If you use Nuxt as a static site generator, you can work around this by implementing `asyncData()` with a `process.server` check so that you only make the request when you're generating your website server-side, that way your token is not exposed:

```
export default Vue.extend({
  components: {
    // ...
  },

  asyncData () {
    if (process.server) {
      return getPosts()
        .then((data) => {
          return { 
            posts: data.posts 
          }
        })
    }

    return { 
      posts: [] 
    };
  },

  data() {
    return {
      posts: []
    };
  },

})
```

[Idris Lawal](https://hashnode.com/@idris-lawal)

[Sep 14, 2020](https://hashnode.com/posts/how-i-queried-hashnodes-graphql-api-to-display-my-hashnode-blog-posts-on-my-nuxt-website/5ddad5301d03daa468a991c0/comment/5f28f93f09567e0dc187f16c#reply-5f5fd4da7c5fa67dd5903091)

Wow, how did I miss this? Thanks a lot for your valuable feedback. You notes here are absolutely correct. I started making some changes to my portfolio page and broke a couple of things, but I haven't had the time to fix it up.

Thank you!
