Skip to content

Add example of how to extend search query with image hashes #6

@DanielBiegler

Description

@DanielBiegler

Search results dont return "true" assets, first of all they return the SearchResult type which holds a special SearchResultAsset which by default looks like the following, for both the product-/ and variant-asset:

type SearchResultAsset {
  id: ID!
  preview: String!
  focalPoint: Coordinate
}

Hence, if you want preview image hashes in your response you need to extend the types manually and your search implementation to include the hashes

A concrete example for the README would be nice

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions