core/schema/input.graphql

118 lines
1.9 KiB
GraphQL
Raw Normal View History

2025-02-11 09:00:35 +00:00
input MediaItemInput {
url: String
title: String
body: String
source: String
pic: String
date: String
genre: String
artist: String
lyrics: String
}
input AuthorInput {
id: Int!
2024-02-02 12:03:44 +00:00
slug: String
2025-02-11 09:00:35 +00:00
}
input TopicInput {
id: Int
slug: String!
2024-02-02 12:03:44 +00:00
title: String
body: String
2025-02-11 09:00:35 +00:00
pic: String
}
input DraftInput {
id: Int
# no created_at, updated_at, deleted_at, updated_by, deleted_by
layout: String
shout_id: Int # Changed from shout: Shout
author_ids: [Int!] # Changed from authors: [Author]
topic_ids: [Int!] # Changed from topics: [Topic]
main_topic_id: Int # Changed from main_topic: Topic
media: [MediaItemInput] # Changed to use MediaItemInput
2024-02-02 12:03:44 +00:00
lead: String
subtitle: String
2025-02-11 09:00:35 +00:00
lang: String
seo: String
body: String
title: String
slug: String
2024-02-02 12:03:44 +00:00
cover: String
2025-02-11 09:00:35 +00:00
cover_caption: String
2025-04-15 17:09:22 +00:00
seo: String
2024-02-02 12:03:44 +00:00
}
input ProfileInput {
slug: String
name: String
pic: String
links: [String]
bio: String
about: String
}
input ReactionInput {
2024-02-16 16:59:12 +00:00
id: Int
2024-02-02 12:03:44 +00:00
kind: ReactionKind!
shout: Int!
quote: String
body: String
reply_to: Int
}
input AuthorsBy {
last_seen: Int
created_at: Int
slug: String
name: String
topic: String
order: String
after: Int
stat: String
}
input LoadShoutsFilters {
topic: String
author: String
layouts: [String]
featured: Boolean
2024-11-01 06:50:19 +00:00
reacted: Boolean # requires auth, used in load_shouts_feed
2024-02-02 12:03:44 +00:00
after: Int
}
input LoadShoutsOptions {
filters: LoadShoutsFilters
limit: Int!
random_limit: Int
offset: Int
2024-11-01 06:50:19 +00:00
order_by: ShoutsOrderBy
2024-02-02 12:03:44 +00:00
order_by_desc: Boolean
}
input ReactionBy {
shout: String
shouts: [String]
search: String
2024-10-21 07:52:23 +00:00
kinds: [ReactionKind]
reply_to: Int # filter
2024-02-02 12:03:44 +00:00
topic: String
created_by: Int
2024-07-18 06:09:48 +00:00
author: String
2024-02-02 12:03:44 +00:00
after: Int
2024-10-21 07:52:23 +00:00
sort: ReactionSort # sort
2024-02-02 12:03:44 +00:00
}
2024-03-04 07:35:33 +00:00
input NotificationSeenInput {
notifications: [Int]
thread: Int
}
2024-10-21 13:42:30 +00:00
input CommunityInput {
slug: String
name: String
desc: String
pic: String
}