Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

376
Vistas
GraphQL Expected Iterable but did not find field

I am trying to implement GraphQL but always get the error of Expected iterable. As I understand there can be an error with the types, but i tried everything and don't know what to do

that's what my API returns

        {
      "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"
        },
     ......
]
}

and here is my code

  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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda