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

Cannot query field "url" #10

Open
GerhardMes opened this issue Apr 2, 2019 · 3 comments
Open

Cannot query field "url" #10

GerhardMes opened this issue Apr 2, 2019 · 3 comments

Comments

@GerhardMes
Copy link

got following error code within /src/templates/WordPressPost.vue

Error: Cannot query field "url" on type "WordPressAttachment".

GraphQL request (36:7)
35: featuredMedia {
36: url
^
37: width

When trying to connect using Postman, everything is fine with my API.

Any advice?
Thaks

Cheers Gerhard

@travis-r6s
Copy link
Member

I had the same issue after upgrading the source plugin to v0.2.1.

Try this query instead:

featuredMedia {
      sourceUrl
      altText
      mediaDetails {
        width
      }
    }

@jhalmu
Copy link

jhalmu commented Apr 9, 2019

Yes. This helped me too.

@GerhardMes
Copy link
Author

I changed this and the error is gone away. But in the listing page there are no images (featured images) although I use it in WP. The images only appear on blog page.

And I have another issue. On the excerpt ( I think) it also imports the "share it" in an

  • . Is there a way to exclude the share it li?

  • 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

    3 participants