Is there anyway I could do some kind of following approach?
const myVar =`
myFunField
`;
export const MyFragment = gql`
fragment MyFragment on SomeType {
MyNode {
myAnotherField1
${myVar}
myAnotherField2
}
}