mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
52 lines
832 B
JavaScript
52 lines
832 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export default gql(`
|
|
query User($slug: String!) {
|
|
User(slug: $slug) {
|
|
id
|
|
name
|
|
avatar
|
|
friendsCount
|
|
friends {
|
|
id
|
|
name
|
|
slug
|
|
avatar
|
|
}
|
|
badgesCount
|
|
shoutedCount
|
|
commentsCount
|
|
followingCount
|
|
following {
|
|
id
|
|
name
|
|
slug
|
|
avatar
|
|
followedByCount
|
|
contributionsCount
|
|
commentsCount
|
|
}
|
|
followedByCount
|
|
contributionsCount
|
|
contributions {
|
|
Post {
|
|
id
|
|
slug
|
|
title
|
|
contentExcerpt
|
|
shoutedCount
|
|
commentsCount
|
|
image
|
|
author {
|
|
User {
|
|
id
|
|
avatar
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|