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

203
Views
What is the best practice method to fetch GraphQL data within a Magento Module?

I wish to pull in filtered product data via JavaScript from within a Magento module? Using graphql to only retrieve the data I want.

I can do this using the various graphql endpoints, however, I'm currently doing this by converting the HTTP calls to jQuery in Postman (for the moment). This feels messy.

It's a much simpler task when calling from a React or other SPA as I'd just use axios, Apollo etc.

From what I have read, the Magento dev docs do not include any specific approach to calling graphql endpoints within classic Magento 2 modules.

What would the most efficient way to approach this?

about 4 years ago · Juan Pablo Isaza
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!