Replies: 1 comment
-
Please some one can help me? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am struggling with how to retrieve media values through REST queries, as the
previewImage
field is related to themedia
collection.When I access the data through the API endpoint, it displays the
previewImage
field as an object containing all the fields of media collection:However, when I use a function to retrieve the same data, it only shows the id property as a string.
I would like to know why this is happening and how I can properly retrieve the previewImage data as an object with all properties of
media
collection.As a new programmer, I am not yet familiar with
Graphql
&Apollo Client
like in the demo repo. Do I need to learn aboutGraphql
&Apollo Client
in order to retrieve Media using REST Queries?Here is my function
Beta Was this translation helpful? Give feedback.
All reactions