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

GraphQL: Expose all link field data #158

Closed
wrux opened this issue Jun 22, 2021 · 3 comments
Closed

GraphQL: Expose all link field data #158

wrux opened this issue Jun 22, 2021 · 3 comments
Labels

Comments

@wrux
Copy link

wrux commented Jun 22, 2021

Problem

I am querying my data in and the typed link field only returns a string.

In Craft you can specify the link text, if it should open in a new tab, aria label and various other things, however these are not exposed to the GraphQL API.

Does this need to be configured on my end or is the feature planned for a future release?

System info

  • PHP version: 7.4.14
  • Typed link field: 1.0.25
@mildlygeeky
Copy link

So this has been present on the master branch here on GitHub for a while, but you can only get it by setting your constraint to dev-master in composer.json.

@sebastian-lenz - any reason this has not yet been put into a finished release? I don't love being on non-production releases, but this GQL support has been both necessary and rock-solid for us for months.

@sebastian-lenz
Copy link
Owner

Hi @wrux, v1 of the plugin supports the legacy GraphQL plugin, if you want to use the native GraphQL support of Craft you have to switch to version 2.

@mildlygeeky You should not have to set your dependency to dev-master, this is indeed dangerous as you'll receive all commits that are pushed to this repository. I release new versions of v2 to packagist that are intended to be used, see https://packagist.org/packages/sebastianlenz/linkfield. You should be able to require v2 by specifying a stability flag:

{
    "require": {
        "sebastianlenz/linkfield": "2.*@rc"
    }
}

As a lot of Craft sites use this plugin, I am extra cautious before finally releasing this update, sorry about that.

@teamteak
Copy link

teamteak commented Dec 17, 2021

Hey - any plans on releasing 2.x soon? We love your plugin, but it's limiting in our Headless CMS site with this exact same issue.

Do you need help testing?

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

No branches or pull requests

4 participants