Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
How to pass a value between two different nodejs functions called by 2 different graphql mutations?

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.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!