-
Notifications
You must be signed in to change notification settings - Fork 103
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
Implement GraphQL query layer #930
Comments
IMO, by default we should not think that stored object = presented object. |
Hacky solution to this particular problem would be some proto annotations and having 2 codec modes which will understand that annotation and handle the coding. .... but to be honest, it looks too hacky ;) |
With the ORM, the stored object is effectively the presented object because the ORM will expose its own direct query layer to clients. So we will need to figure out a way to solve the presentation problem with the ORM. My current thinking has been:
We could also do gRPC where we auto-generated presentation types based on Sorry this isn't well documented on the ORM side but we should write it up in one of the Framework WG calls |
We spoke about this briefly on our standup this morning. The graphql solution sounds interesting but may require more work. @technicallyty is planning to look into the scalar annotation later today if he has the time. |
Notes from product call: For v4.0 release, we will need to create separate proto messages where addresses are represented as strings. |
Moving my comments from #1022 here
What do you think @ryanchristo ? |
I think we should consider jumping straight to graphql given we need more than just addresses converted from bytes to strings. Scalars will not eliminate our need for writing out queries as I have done in #1022. |
I've sort of been leaning towards graphql as well |
Summary
We are currently storing addresses as
bytes
in state proto messages for storage efficiency. We are also using the same messages in query responses and therefore returning addresses that are not human-readable.How do we make addresses readable in query responses?
Short-term solution:
Potential long-term solutions:
For Admin Use
The text was updated successfully, but these errors were encountered: