Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

includeFromRelated / getTagsFromRelated within Object #14

Open
philipppolder opened this issue Aug 22, 2022 · 1 comment
Open

includeFromRelated / getTagsFromRelated within Object #14

philipppolder opened this issue Aug 22, 2022 · 1 comment

Comments

@philipppolder
Copy link

Hi,
I'm using a localization approach very similar to this: https://www.sanity.io/docs/localization

As a result my tags are part of an object, that will output like this:

    "de": [
      {
        "label": "Test DE",
        "value": "Test DE"
      }
    ],
    "en": [
      {
        "label": "Test EN",
        "value": "Test EN"
      }
    ]
  }

Is there any way to make "includeFromRelated" work in this case?

Possibly by allowing for a custom query instead of a string?
(Bypassing or extending getTagsFromRelated() maybe?)

Thanks!

@surjithctly
Copy link

Just had the same issue. I was wondering why includeFromRelated: "tags" not working and realized may be inside an array/object. If it is, there should be a workaround. Maybe we can specify array[]->tags so the plugin can run groq in the background.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants