follows-queries-hotfix

This commit is contained in:
Untone 2024-02-23 22:31:33 +03:00
parent 3d4f542cdf
commit 7a57c39a75
3 changed files with 40 additions and 6 deletions

View File

@ -0,0 +1,18 @@
import { gql } from '@urql/core'
export default gql`
query GetAuthorFollowsAuthors($slug: String, $user: String, $author_id: Int) {
get_author_follows_authors(slug: $slug, user: $user, author_id: $author_id) {
id
slug
name
pic
bio
stat {
shouts
authors
followers
}
}
}
`

View File

@ -0,0 +1,16 @@
import { gql } from '@urql/core'
export default gql`
query GetAuthorFollowsTopics($slug: String, $user: String, $author_id: Int) {
get_author_follows_topics(slug: $slug, user: $user, author_id: $author_id) {
id
slug
title
stat {
shouts
authors
followers
}
}
}
`

View File

@ -25,12 +25,12 @@ export default gql`
followers followers
} }
} }
communities { #communities {
id # id
slug # slug
name # name
pic # pic
} #}
} }
} }
` `