Get IndexPaterrn

Hello there. How can I get IndexPattern in my plugin? Plugin failed when i just use courier.indexPatterns.get(id) with or without an argument. I can see the func when i console.log it but when i call the func, my plugin failed. It shows only white screen without any error How can I get IndexPattern by id in my Plugin?

the approach is actually the correct one, you are sure you are properly waiting for the promise to resolve and that this id also exists that you are trying to load? (Remember it's the id of the index pattern, not it's name.)

There is console.log result of find index-patterns and id that i pass to the func. All this invoke inside resolve method of route. I tried to just copy/paste from discover, but it also doesnt work No error, just not load.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.