webapp/src/graphql/query/authors-load-by.ts

23 lines
403 B
TypeScript
Raw Normal View History

2022-09-09 11:53:35 +00:00
import { gql } from '@urql/core'
export default gql`
2022-11-15 12:05:56 +00:00
query AuthorLoadByQuery($by: AuthorsBy, $limit: Int, $offset: Int) {
2022-11-16 07:42:43 +00:00
loadAuthorsBy(by: $by, limit: $limit, offset: $offset) {
2022-09-09 11:53:35 +00:00
_id: slug
slug
name
bio
userpic
2022-11-18 02:23:04 +00:00
# communities
2022-09-09 11:53:35 +00:00
links
2022-11-18 02:23:04 +00:00
# createdAt
2022-10-07 19:35:53 +00:00
lastSeen
2022-11-18 02:23:04 +00:00
# ratings {
# _id: rater
# rater
# value
# }
2022-09-09 11:53:35 +00:00
}
}
`