kodadot / loligo

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

Add Collection Entity to TokenEntity #53

Closed vikiival closed 1 year ago

vikiival commented 1 year ago

So that means TokenEntity is expecting same image under one collection right?

correct, all of the nfts under one collection that share same ipfs URL are a single TokenEntity

Originally posted by @daiagi in https://github.com/kodadot/nft-gallery/issues/7462#issuecomment-1744596021

Task:

  1. To TokenEntity add CollectionEntity
type TokenEntity @entity {
  collection: CollectionEntity
}
vikiival commented 1 year ago

Looks like it's already present

https://github.com/kodadot/stick/blob/f870effae7141dde9668e94dfe771f6fdd7ff596/schema.graphql#L32

daiagi commented 1 year ago

Yes it is

vikiival commented 1 year ago

Yes it is

so why we cannot use it in the query?

daiagi commented 1 year ago

We can and I will