49
Hey everyone!
With this 3Speak Video & Hive post, @sagarkothari88 illustrates how to use GraphQL Queries based on Union Indexer.
query MyQuery {
trendingFeed(spkvideo: {only: true}) {
items {
... on HivePost {
spkvideo
stats {
num_comments
num_votes
total_hive_reward
}
lang
title
tags
permlink
created_at
body
}
}
}
}
query MyQuery {
socialFeed(spkvideo: {only: true}) {
items {
... on HivePost {
spkvideo
stats {
num_comments
num_votes
total_hive_reward
}
lang
title
tags
permlink
created_at
body
}
}
}
query MyQuery {
socialFeed(spkvideo: {only: true, firstUpload: true}) {
items {
... on HivePost {
spkvideo
stats {
num_comments
num_votes
total_hive_reward
}
lang
title
tags
permlink
created_at
body
}
}
}
query MyQuery {
relatedFeed(permlink: "sdltslwo", author: "leofinance") {
items {
... on HivePost {
spkvideo
stats {
num_comments
num_votes
total_hive_reward
}
lang
title
tags
permlink
created_at
body
}
}
}
}
query MyQuery {
socialFeed(
spkvideo: {only: true}
feedOptions: {byCreator: {_eq: "sagarkothari88"}}
) {
items {
... on HivePost {
body
title
tags
stats {
num_comments
num_votes
total_hive_reward
}
spkvideo
permlink
lang
community
created_at
}
}
}
}
query MyQuery {
socialFeed(
spkvideo: {only: true, isShort: true}
) {
items {
... on HivePost {
body
title
tags
stats {
num_comments
num_votes
total_hive_reward
}
spkvideo
permlink
lang
community
created_at
}
}
}
}
Coming soon.
query MyQuery {
community(id: "hive-181335") {
title
about
created_at
images {
avatar
cover
}
roles {
role
title
username
}
subscribers
}
}
query MyQuery {
community(id: "hive-181335") {
title
about
created_at
images {
avatar
cover
}
roles {
role
title
username
}
subscribers
trendingFeed {
items {
... on HivePost {
spkvideo
stats {
num_comments
num_votes
total_hive_reward
}
lang
title
tags
permlink
created_at
body
}
}
}
}
}
The SPK Network is a decentralized Web 3.0 protocol that rewards value creators and infrastructure providers appropriately and autonomously by distributing reward tokens so that every user, creator, and platform can earn rewards on a level playing field.
Check out the SPK Network Light Paper: https://peakd.com/hive/@spknetwork/spk-network-light-paper
Our Website: https://spk.network/
Telegram Group: https://t.me/spknetwork
Discord Server: https://discord.gg/JbhQ7dREsP
SPK Network Linktree: https://linktr.ee/spknetwork
3Speak Linktree | SPK Network Linktree |
Comments:
Reply:
To comment on this video please connect a HIVE account to your profile: Connect HIVE Account