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

378
Views
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
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!