Hydrogen utilities overview

Hydrogen utilities are functions that perform different tasks to help you develop quickly.

Utility name Description
flattenConnection Transforms a connection object into a flat array.
isClient Indicates if the code executed on the client.
isServer Indicates if the code executed on the server.
log Logs debugging, warning, and error information about the application.
parseMetafieldValue Parses a metafield's value from a string to a sensible type corresponding to the metafield's type.
queryShop Helps you query the Storefront API.