I’m trying to pass the data between two things. I will now explain it in detail. First graphql query calls a function func1() which is like
func1(){
const a = await func2();
return a;
}
func2(){
return 7;
}
func3(value){
return value
}
this func2 is returning an integer for example 7. For now I was using console input but now I want to get this result from another graphql mutation which calls a function func3(). I pass the required value for example 7 in the graphql mutation arguments which gets passed to function func3. How can I wait for this func3’s value in func1? Please help and if you want me to elaborate any specific thing, I’d be happy to do so.