Get term by slug in Gutenberg

I think one could search for a given term slug with getEntityRecords:

select('core').getEntityRecords( 'taxonomy', 'category', { slug : 'my-slug' } )

by skimming through the endpoint reference that supports the slug query parameter.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)