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

Formatting error at end of Query on prisma.graphql? #276

Closed
maxdarque opened this issue Apr 20, 2018 · 2 comments
Closed

Formatting error at end of Query on prisma.graphql? #276

maxdarque opened this issue Apr 20, 2018 · 2 comments

Comments

@maxdarque
Copy link

I'm running prisma deploy to generate prisma.graphql.

"graphql-cli": "^2.15.9"
"prisma": "^1.6.3",

When I start my graphql-yoga server, it gives the following error:

Type "Node" is missing a "resolveType" resolver. Pass false into "resolverValidationOptions.requireResolversForResolveType" to disable this warning.

Deep in my prisma.graphql file, I'm finding the code below. It looks like the comment """The ID of an object""" is commenting out the rest of my .graphql file although it doesn't seem to impact the running of the server. Is this related? Is it a problem?

type Query {
  [INSERT MULTIPLE QUERIES HERE]
  """
  Fetches an object given its ID
  """
  node("""
  The ID of an object
  """
  id: ID!): Node
}

enum Region {
  NORTH_AMERICA
  EUROPE
  ASIA
  ROW
  GLOBAL
}
@maxdarque
Copy link
Author

maxdarque commented Apr 20, 2018

Referenced in graphql-js. See here: graphql/graphql-js#1285

@marktani
Copy link
Contributor

The warning is further discussed here: https://github.com/graphcool/prisma/issues/2225
It's unrelated to the format of the comment.

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