Skip to content

Instantly share code, notes, and snippets.

@ries9112
Last active June 19, 2021 00:40
Show Gist options
  • Save ries9112/ebd0e3194613334353d89e1845fa82e3 to your computer and use it in GitHub Desktop.
Save ries9112/ebd0e3194613334353d89e1845fa82e3 to your computer and use it in GitHub Desktop.
This is an example of using the GraphQL endpoint by @marchingsquare. This example gets data for John Karel address and finds objkts with certain tags (loose match with 'like'). Try copy/pasting this example into this editor: https://api.hicdex.com/graphiql/
query collectorGallery($address: String = "tz1gqaKjfQBhUMCE6LhbkpuittRiWv5Z6w38") {
hic_et_nunc_token(where: {trades: {buyer: {address: {_eq: $address}}}, _and: {token_tags: {tag: {tag: {_like: "jjjjjjjjjjohn"}}, _or: {token: {token_tags: {tag: {tag: {_like: "window"}}}}}}}}, order_by: {id: asc}) {
id
artifact_uri
thumbnail_uri
timestamp
mime
title
description
supply
token_tags {
tag {
tag
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment