docs
docs copied to clipboard
Update creating-a-subgraph.mdx
Fix typo in writing mappings code example
@Tonio2 Thanks for the PR. Recently there was a feature introduced: "Bytes as IDs". So the ID does not need to be a string. That being said, are you running into troubles with that code example? I'm not 100% if the event param is not a BigInt that needs to be converted to Bytes first.
Read more about it here: https://medium.com/edge-node-engineering/two-simple-subgraph-performance-improvements-a76c6b3e7eac