Fetch all media source URL of a post by slug
-
I am using the below graphql query to fetch post data, but I am not sure how to get only the media a post by slug and not the content
query PostBySlug($id: ID!, $idType: PostIdType!) { post(id: $id, idType: $idType) { title excerpt slug date featuredImage { node { sourceUrl } } content } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fetch all media source URL of a post by slug’ is closed to new replies.