steemQL 0.6.2 - Voting and Metadata
A new update for steemql is out. This one adds the ability to vote and query votes for posts. Hence all basic features to interact (posting, commenting, voting) are available now. As an extra benefit, the json_metadata
field of posts is now parsed and the standard fields like image
, tags
, links
etc. are now returned as a direct property of posts. If the don't exist, null
is returned. No need to deal with that on your own. Have fun...
New Features
- Vote on posts
- Get active votes for posts (standalone or inside a post query as a sub query)
- Standard properties from
json_metadata
as direct post properties (pre-parsed)
Roadmap
- Add related data, e.g. get all
comments
ofposts
inside auser
query - Adding missing properties for important custom queries like posts, user etc.
- Adding extra convenience properties like formatted or calculated values (e.g. total balance, reputation)
- Subscriptions for post/comment related queries, to use with GraphQL Clients like Apollo
Contribution
Any kind of contribution is welcome, mainly feedback and feature requests.
GitHub: steemQL
Discord: https://discord.gg/NgezG
steemit.chat: @sarasate
Projects using steemQL:
- Insteem Web
- Insteem App (React Native, available via Expo)
steemQL In Action
The whole Insteem Site is using steemql. If you e.g. wanna figure out who mentioned you in a post or comment, have a look here: https://www.insteem.com/mentions/@sarasate
Here is a sample query to get posts including images, tags and links and the user object:
{
posts {
id
title
tags
format
app
links
community
user {
id
name
}
}
}
Play with it: steemQL Server. To get documentation for available queries, hit the green Schema
button on the right.
If you're not familiar with GraphQL, here you go.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @sarasate I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Sneaky Ninja Attack! You have been defended with a 1.22% vote... I was summoned by @lupo! I have done their bidding and now I will vanish...Whoosh
Hey, I've tried contacting you through discord but there's and error saying your invitation link has expired
Hi, which link did you use? you can find me as @sarasate directly..