gun icon indicating copy to clipboard operation
gun copied to clipboard

chaining get

Open giraffekey opened this issue 4 years ago • 1 comments

The current implementation of get does not support chained get calls such as gun.get("key").get("prop").put("val").

The GunGet struct should have its own get function that returns a new Self. Not sure how we'd implement chaining but I'm guessing the key field of GunGet would need to be changed to a vector of strings rather than a str. Then on, once and put would somehow need to be changed to support chaining. Not sure what the get and put requests would look like in a chained context.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

giraffekey avatar Dec 18 '20 03:12 giraffekey

Also gun.back() should be implemented.

giraffekey avatar Dec 18 '20 03:12 giraffekey