-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working on nested objects ? #1
Comments
thanks for the comment! from the brief look - does the input you tried come from strapi graphql endpoint? my code relies on presence of |
Not sure if it's the same issue but also I'm finding TS is not unwrapping nested objects. In this case I can pass this to |
I think paging is not supported (yet). I see there is |
Hi, thanks for your code, but it seems it does not work on nested object.
raw :
{"id":12,"attributes":{"title":"Sometimes happy","description":null,"private":true,"synced":false,"wp_id":104,"wp_status":"private","track_count":51,"createdAt":"2019-11-21T18:15:11.000Z","updatedAt":"2023-06-19T08:07:09.741Z","publishedAt":"2019-11-21T18:15:11.000Z","thumbnail":{"data":{"id":86,"attributes":{"url":"https://test.com/public/uploads/20190904_180714_cc0513641e.jpg"}}},"author":{"data":{"id":1,"attributes":{"username":"jordan"}}},"tags":{"data":[]},"favoriters":{"data":[]}}}
flattenEntity():
{"title":"Sometimes happy","description":null,"private":true,"synced":false,"wp_id":104,"wp_status":"private","track_count":51,"createdAt":"2019-11-21T18:15:11.000Z","updatedAt":"2023-06-19T08:07:09.741Z","publishedAt":"2019-11-21T18:15:11.000Z","thumbnail":{"data":{"id":86,"attributes":{"url":"https://test.com/public/uploads/20190904_180714_cc0513641e.jpg"}}},"author":{"data":{"id":1,"attributes":{"username":"jordan"}}},"tags":{"data":[]},"favoriters":{"data":[]},"id":12}
The text was updated successfully, but these errors were encountered: