Fetching Data with client script

Hi, can you assist me in fetching data using a client script from a field within a different doctype. The field I will use is not an index field.

I would like to fetch the “Specs Type” data you see in the screenshot above. I cannot use this data in the naming because it shouldn’t be “Unique”


Please, further elaborate the question a bit …
Can you show both doctype fields list?


frappe.db.get_doc("Specs Type", "NAME OF THE SPEC").then( docSpecsType => {