Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Getting only first element from array #15

Open
pwozniak1986 opened this issue Nov 1, 2020 · 1 comment
Open

Getting only first element from array #15

pwozniak1986 opened this issue Nov 1, 2020 · 1 comment
Labels
question Further information is requested

Comments

@pwozniak1986
Copy link

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.

@AndreasFaust
Copy link
Owner

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

@AndreasFaust AndreasFaust added the question Further information is requested label Jan 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants