Skip to content

GraphQL Error Field "author" must not have a selection since type "Int" has no subfields. #5

@Kyngo

Description

@Kyngo

When I run yarn develop on my machine after yarn install, I get the error mentioned above, right after fetching the API.

GraphQL Error Field "author" must not have a selection since type "Int" has no subfields.

  file: /Users/kyngo/Development/gatsby-wordpress-netlify-starter/src/pages/index.jsx

   5 |         node {
   6 |           date
   7 |           slug
   8 |           title
   9 |           modified
  10 |           excerpt
  11 |           id
  12 |           featured_media {
  13 |             source_url
  14 |           }
> 15 |           author {
     |                  ^
  16 |             name
  17 |           }
  18 |           categories {
  19 |             name
  20 |           }
  21 |           content
  22 |         }
  23 |       }
  24 |     }
  25 |   }

success extract queries from components — 0.056 s
success run graphql queries — 0.009 s
success write out page data — 0.003 s
success write out redirect data — 0.001 s
success onPostBootstrap — 0.001 s

info bootstrap finished - 65.22 s

error UNHANDLED EXCEPTION


  Error: getaddrinfo ENOTFOUND localhost

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions