Retrieve asset tags via GraphQL

I have…

  • Read the following guideline: Troubleshooting and Support - Squidex. I understand that my support request might get deleted if I do not follow the guideline.
  • Used code blocks with ``` to format my code examples like JSON or logs properly.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

I’m trying to retrieve the tags Squidex is setting for assets like type/png, image or image/medium via GraphQL. Retrieving all other data like id, url, metadata etc. works without a problem, but when I add the tags field to the GraphQL requests I get an error saying "message": "Error trying to resolve field 'tags'.". I also tried it via the flatData as well as the regular data prop. Maybe there is something wrong with my query, but all other fields can be retrieved without problems.

Expected behavior

Being able to retrieve the assets tags via GraphQL.

Minimal reproduction of the problem

My query looks like this

{
  queryModelNameContents {
    id
    flatData {
      assetFieldName {
        id
        metadata
        url
        tags
      }
    }
    data {
      assetFieldName {
        iv {
          tags
        }
      }
    }
  }
}

Environment

App Name: can’t post due to customer protection

  • Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Browser:

  • Brave (desktop)
  • Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • Edge

Others:

I don’t know what is going on there. I will have a look.

it is actually a bug. I hope I can release a fix tomorrow.

1 Like

Ah cool, that would be dope!

This topic was automatically closed after 3 hours. New replies are no longer allowed.