The function "getObjectView" is not really well described. If one goes after the documentation here the syntax does not fit.
If you go to the syntax help in VisualStudioCode, you don't get anywhere either. It says that you can enter the adapter name under "Design", if you do this, the code crashes. When I want to search the object database, the first parameter must be "system" only. If I want to search an adapter-specific view, it seems that I can also enter the adapter name.
There is also a general listing missing, what can be used at "search" parameters, here
The function "getObjectView" is not really well described. If one goes after the documentation here the syntax does not fit. If you go to the syntax help in VisualStudioCode, you don't get anywhere either. It says that you can enter the adapter name under "Design", if you do this, the code crashes. When I want to search the object database, the first parameter must be "system" only. If I want to search an adapter-specific view, it seems that I can also enter the adapter name.
There is also a general listing missing, what can be used at "search" parameters, here
Example:
this.getObjectView('system', 'device', { startkey: 'alexa2.0.Echo-Devices.', endkey: 'alexa2.0.Echo-Devices.\u9999' }, async (err, data) => { this.log.warn(JSON.stringify(data)) });