Hi CB team ,
I have some suggestion here . We are trying to CB to migrate our DB from Oracle and application to use CB . We are using Python SDK to get our query into GraphQL schema and finally to UI .
While using python SDK 2.5.1 API and its related method I found its pretty difficult to mind map on few things . how to use get , get_multi , retrieve_multi, subdocument SD and lookup_in methods . It seems it is challenging o return value of those methods as each methods are different and writing python code I feel its hard to know how to transform some method return like N1QLResuest to List or Tuple or dictionary and dictionary items . Its being hard to get around those python code because there is no clear documentation (even on the API) how can I use different objects .
Giving you a example :
rv = cb.get("key_1") # cb is bucket # rv.value is of <class 'dict'> , [rv.value] is of <class 'list' , rv.value.items() is of <class 'dict_items'> # can't use rv.value.items() as it is not JSON serializable
as you different rv. returns different results and we have no document how could we use what items
You guys usually do a very good blogs and documentation. I think I didn’t find encircling on the topic how I can achieve the results whatever Python Array format I want and finally any kind of JSON objects .
It would be great help if CB Python SDK team provide some guidelines and write a blog on that .
Thanks for your help .