question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Field must have a subselection

See original GitHub issue

Same as graphcool/prisma-binding#76

query {
  homesInPriceRange(min: 0, max: 9000) {
    numRatings
  }
}
{
  "data": null,
  "errors": [
    {
      "message": "Field 'places' of type 'Place' must have a sub selection. (line 2, column 3):\n  places(where: $_where, orderBy: $_orderBy, skip: $_skip, after: $_after, before: $_before, first: $_first, last: $_last)\n  ^",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "homesInPriceRange"
      ]
    }
  ]
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
marktanicommented, Mar 5, 2018

Can confirm! Note that this query works:

query {
  homesInPriceRange(min: 0, max: 9000) {
    id
    numRatings
  }
}
1reaction
maticzavcommented, Jul 4, 2018

prismagraphql/prisma-binding#76

Read more comments on GitHub >

github_iconTop Results From Across the Web

Field \"createUaction\" of type \"CreateUaction\" must have a ...
A selection set is primarily composed of fields. A field describes one discrete piece of information available to request within a selection set ......
Read more >
Field "A" of type "A" must have a sub selection #517 - GitHub
When querying a field which has fields of its own, you have to specify which field you want. In this case you are...
Read more >
Field x of type y must have a sub selection - Questions
Hi guys, I'm new to GraphQL and Prisma and I'm trying to understand this error: I'm executing this code in my application server...
Read more >
Type \"[ArrayResult]\" must have a selection of subfields error
I have a custom class called Item. It has a fruit property of type Array. There is an object in that class where...
Read more >
graphql-dotnet/graphql-dotnet - Gitter
@drobinson_code_twitter. I'm getting: {GraphQL.Validation.ValidationError: Field updateAllFoos of type String must not have a sub selection}. When I use:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found