docs icon indicating copy to clipboard operation
docs copied to clipboard

Update creating-a-subgraph.mdx

Open Tonio2 opened this issue 2 years ago • 1 comments

Fix typo in writing mappings code example

Tonio2 avatar Apr 26 '23 12:04 Tonio2

@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

schmidsi avatar Apr 26 '23 15:04 schmidsi