follows-queries-hotfix
This commit is contained in:
parent
3d4f542cdf
commit
7a57c39a75
18
src/graphql/query/core/author-follows-authors.ts
Normal file
18
src/graphql/query/core/author-follows-authors.ts
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
16
src/graphql/query/core/author-follows-topics.ts
Normal file
16
src/graphql/query/core/author-follows-topics.ts
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
|
@ -25,12 +25,12 @@ export default gql`
|
||||||
followers
|
followers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
communities {
|
#communities {
|
||||||
id
|
# id
|
||||||
slug
|
# slug
|
||||||
name
|
# name
|
||||||
pic
|
# pic
|
||||||
}
|
#}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user