From 1f4f2c0ff72ca06932bbd9e60fec9956c76168bb Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Fri, 8 Mar 2019 18:00:31 +0100 Subject: [PATCH] Try to get it working --- graphql/UserProfileQuery.js | 66 +++++++++++++++++++++---------------- pages/profile/_slug.vue | 8 ++--- 2 files changed, 42 insertions(+), 32 deletions(-) diff --git a/graphql/UserProfileQuery.js b/graphql/UserProfileQuery.js index 30431602..77b48c23 100644 --- a/graphql/UserProfileQuery.js +++ b/graphql/UserProfileQuery.js @@ -24,41 +24,51 @@ export default app => { commentsCount followingCount following(first: 7) { - id - name - slug - avatar - followedByCount - followedByCurrentUser - contributionsCount - commentsCount - badges { - id - key - icon + createdAt: { + formatted } - location { - name: name${lang} + User { + id + name + slug + avatar + followedByCount + followedByCurrentUser + contributionsCount + commentsCount + badges { + id + key + icon + } + location { + name: name${lang} + } } } followedByCount followedByCurrentUser followedBy(first: 7) { - id - name - slug - avatar - followedByCount - followedByCurrentUser - contributionsCount - commentsCount - badges { - id - key - icon + createdAt: { + formatted } - location { - name: name${lang} + User { + id + name + slug + avatar + followedByCount + followedByCurrentUser + contributionsCount + commentsCount + badges { + id + key + icon + } + location { + name: name${lang} + } } } contributionsCount diff --git a/pages/profile/_slug.vue b/pages/profile/_slug.vue index 61418700..abfe1ae2 100644 --- a/pages/profile/_slug.vue +++ b/pages/profile/_slug.vue @@ -129,13 +129,13 @@