[Query Node] Adds StorageBag.objectsSize field#4818
[Query Node] Adds StorageBag.objectsSize field#4818mnaamani merged 2 commits intoJoystream:masterfrom
StorageBag.objectsSize field#4818Conversation
| objects: [StorageDataObject!]! | ||
|
|
||
| """Total size of data objects in Bag""" | ||
| objectsSize: BigInt! |
There was a problem hiding this comment.
just as a general question, if an older version of storage node does a query for StorageBag and they are not aware of the new schema, how will it behave? Will it fail to parse the response or just not be aware of this new field?
There was a problem hiding this comment.
Adding a new field to the graphql schema is generally future-proof (unless we make breaking changes to the schema), So if the older version of storage-node is unaware of the new schema and they don't query the new field, the query would work fine.
For example, the storage-node makes use of storageBagsConnection query to get all assigned bags. As you can see the only field being queried is bag id. So being unaware of the new schema does not create the issues.
addresses #4817