kodadot / loligo

Common good repository for Squid indexers in KodaDot
2 stars 1 forks source link

Available Event resolver #19

Open vikiival opened 1 year ago

vikiival commented 1 year ago

we should dynamically decide which events should be visible based on schema

query availableEventsByNftId($id: String) {
   list: eventList(id: $id) 
}

SQL for this would look like

SELECT DISTINCT e.interaction FROM event e WHERE e.nft_id = $1