-
Notifications
You must be signed in to change notification settings - Fork 123
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
How can I fetch post categories and view it #41
Comments
You need to filter first your categories before sending that data to the UI because a Category is not a String, it's an object.
To get the author Avatar you might need to do another http request to fetch an user, there's a function inside of this library named fetchUser, use that. And inside of the parameters use the author id that is inside of the post.authorID to get the user with the avatar. |
You can also add "?_embed" at the endpoint to embed more sibling metadata from other tables. |
but it's not working.
Also, can I fetch the author's avatar too?
If possible please let me know.
The text was updated successfully, but these errors were encountered: