Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function initTemplateStringTransformer(schemaJson) {
const schema = getSchema(schemaJson);
const transformer = new RelayQLTransformer(schema, {});
function templateStringTag(quasis, ...expressions) {
const processedTemplateLiteral = processTemplateLiteral(quasis, expressions, 'queryName');
const processedTemplateText = transformer.processTemplateText(processedTemplateLiteral.templateText, {
documentName: 'queryName',
propName: 'propName'
});
const definition = transformer.processDocumentText(processedTemplateText, {
documentName: 'queryName',
propName: 'propName',
fragmentLocationID: generateHash(JSON.stringify(processedTemplateText)).substring(0, 12)
});
const options = {};