Help teams manage content creation and approval in a clear and structured way
Hygraph
Docs

#Fetching assets

Hygraph automatically generates 4 query types for assets. These are:

Asset queriesAsset queries

  • asset
  • assets
  • assetVersion
  • assetsConnection

These queries work just like regular queries, and can be filtered by their fields.

Here are some sample queries:

#Generate URLs with file names

To enhance SEO and improve user trust, you can include the original file name in asset URLs generated via the new Hygraph Asset Management system.

  1. Run the following query:
  1. Combine the url and fileName manually or via a script, separated by /. The final URL would look like this:
https://eu-central-1-shared-euc1-02.graphassets.com/cmbq7mmxm0nhp07uqduk/cmcaodlnt9vxpfhycpf4/content-finder.gif