I have to import a gql file based on a data or computed property but I did not find any suitable working sample to do that. Please help me if you have a method in mind.
Example:
<script>
// if isEmployee is true import a file named isEmployee.gql else import isNotEmployee.gql
export default {
data(){
isEmployee: true
}
}
<script>