gatsby-source-custom-api icon indicating copy to clipboard operation
gatsby-source-custom-api copied to clipboard

Getting only first element from array

Open pwozniak1986 opened this issue 5 years ago • 1 comments
trafficstars

With the data simillar to the one from manual:

const exampleDataFromApi = [ { url: "post-1", author: "John doe" }, { url: "post-2", author: "Jane Doe" } ];

and following schema: schemas: { posts: url: String author: String }

with a following query: query MyQuery { posts { url author } }

I'm getting only the first element not the whole array.

pwozniak1986 avatar Nov 01 '20 06:11 pwozniak1986

Could you provide a codesandbox for testing? Otherwise it’s hard to figure out, what’s wrong.

AndreasFaust avatar Jan 25 '21 17:01 AndreasFaust