New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a _changeBlock attribute on all entities #2958
Comments
Closely related: #295 (confirmations API). The confirmations API might be overkill but it's worth considering use cases before we add an API change that we then need to maintain forever. |
Yes there are definitely overlaps, though I think the confirmations API requires quite a lot more functionality (field level details, details on the changes, finalization) which is beyond the scope of this issue. You do raise a good point on |
Do those fields are considered as data or metadata? (needed for app development, or only while manually querying/testing the subgraph API?) Because I think we can consider creating a spec for |
Interesting - if that is an established pattern that could work, and as you say it has the benefit of flexibility. To answer the first question, this would be useful for app development, for example when polling for new data, or finding recently changed entities - so that does make it a bit more difficult to break anything, once introduced |
OK. Revisiting this, I am tempted to opt for the simpler approach described in this issue: #1838 |
Closing for now as this was implemented as a filter, we can establish whether adding this information to the entity would be useful |
Graph Node tracks the block range over which a given entity is active. This effectively captures the block when an entity was last changed. This could be surfaced in the graphQL API as an automatically generated field
_changeBlock
. This field would provide helpful metadata, as well as being useful for filtering or sorting (using the logic applied to other fields).e.g.
This would also help with polling for new entities & other requested use-cases.
The text was updated successfully, but these errors were encountered: