mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
76 lines
1.2 KiB
JavaScript
76 lines
1.2 KiB
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export default gql(`
|
|
query User($slug: String!, $first: Int, $offset: Int) {
|
|
User(slug: $slug) {
|
|
id
|
|
name
|
|
avatar
|
|
friendsCount
|
|
friends {
|
|
id
|
|
name
|
|
slug
|
|
avatar
|
|
}
|
|
badges {
|
|
id
|
|
key
|
|
icon
|
|
}
|
|
badgesCount
|
|
shoutedCount
|
|
commentsCount
|
|
followingCount
|
|
following(first: 7) {
|
|
id
|
|
name
|
|
slug
|
|
avatar
|
|
followedByCount
|
|
contributionsCount
|
|
commentsCount
|
|
badges {
|
|
id
|
|
key
|
|
icon
|
|
}
|
|
}
|
|
followedByCount
|
|
followedBy(first: 7) {
|
|
id
|
|
name
|
|
slug
|
|
avatar
|
|
followedByCount
|
|
contributionsCount
|
|
commentsCount
|
|
badges {
|
|
id
|
|
key
|
|
icon
|
|
}
|
|
}
|
|
contributionsCount
|
|
contributions(first: $first, offset: $offset, orderBy: createdAt_desc) {
|
|
id
|
|
slug
|
|
title
|
|
contentExcerpt
|
|
shoutedCount
|
|
commentsCount
|
|
deleted
|
|
image
|
|
createdAt
|
|
author {
|
|
User {
|
|
id
|
|
avatar
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|