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

377
Views
GraphQL esperaba Iterable pero no encontró el campo

Estoy tratando de implementar GraphQL, pero siempre aparece el error Iterable esperado. Según tengo entendido puede haber un error con los tipos, pero probé de todo y no se que hacer

eso es lo que devuelve mi API

 { "data": [ { "id": "bitcoin", "rank": "1", "symbol": "BTC", "name": "Bitcoin", "supply": "17193925.0000000000000000", "maxSupply": "21000000.0000000000000000", "marketCapUsd": "119150835874.4699281625807300", "volumeUsd24Hr": "2927959461.1750323310959460", "priceUsd": "6929.8217756835584756", "changePercent24Hr": "-0.8101417214350335", "vwap24Hr": "7175.0663247679233209" }, ...... ] }

y aquí está mi código

 const coinType = new GraphQLObjectType({ name: 'Coin', fields: () => ({ id: { type: GraphQLString }, name: { type: GraphQLString }, }) }); // Root Query const RootQuery = new GraphQLObjectType({ name: 'RootQueryType', fields: () => ({ coin: { type: new GraphQLList(launchType), resolve(parent, args) { return axios .get('https://api.coincap.io/v2/assets') .then(res => res.data); } }, }) }); module.exports = new GraphQLSchema({ query: RootQuery });
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!