ioBroker / dev-docs

Developer documentation
5 stars 4 forks source link

getObjectView() #31

Closed Xenon-s closed 2 years ago

Xenon-s commented 2 years ago

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.

image

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)) });

Apollon77 commented 2 years ago

Important infos are:

Apollon77 commented 2 years ago

duplicate #10