How to get metadata value from Apex controller to JS?
Always have StaticFactory class for your organization, its the best practice to use one method in different place to get value based on passing string parameter. so when ever you pass the strDeveloperName from js, on click of a button it returns the value in to the result, which I’m passing to this.passquerymdt, which will hold the value from metadata type.
import getMetadataValue from "@salesforce/apex/StaticFactory.getMetadataValue";
Above example will help you to print templates by using Conga and as output attachment will be downloaded as PDF.