@anuditnagar has graciously put together this subgraph for the 101 community!
Subgraph Info
Graph ID: QmcLXayBtNk9X2fCDruq2YyBuotWQ6Vjdw2F2JoDvphe3c
Example Queries
Here's an example query that gets all badges from a specific wallet address (owner field)
{
badges(where:{
owner: "0xf48ac3ea08aacda76de0f5b25f4b1203563733c8"
}) {
owner {
id
}
tokenURI
metadata {
name
description
image
course_id
category
tags
external_url
}
}
}
Here's an example query that gets all badges that match a specific course ID:
PS - we recommend using the course ID to identify courses instead of the course name, since course IDs are always unique
{
badges(where:{
metadata_: {
course_id:"cl6e6e0al169309lffha0u4hb"
}
}) {
owner {
id
}
tokenURI
metadata {
name
description
image
course_id
category
tags
external_url
}
}
}