Java SDK2.1 tutorial's code not work

Hi, We assume in the documentation that people use the asynchronous bucket if not stated otherwise. If you do not call async, you get a synchronous bucket. A get from a sync bucket returns a JsonDocument directly, as oppose to an Obseervable. The map, flatmap, etc functions are used with observables.

2 Likes