Skip to content

Error logging for new interface type semantics#350

Merged
leebyron merged 1 commit intographql:masterfrom
clayallsopp:feature/better-error-logging
May 5, 2016
Merged

Error logging for new interface type semantics#350
leebyron merged 1 commit intographql:masterfrom
clayallsopp:feature/better-error-logging

Conversation

@clayallsopp
Copy link
Copy Markdown
Contributor

If you don't implement schema.types, the current error message is very unhelpful (reduce is not a function on undefined). this should help others in the future

@leebyron leebyron merged commit e6e8d19 into graphql:master May 5, 2016
@leebyron
Copy link
Copy Markdown
Contributor

leebyron commented May 5, 2016

Awesome, thank you

sogko added a commit to sogko/graphql-js that referenced this pull request Jun 1, 2016
* master: (26 commits)
  0.6.0
  Validation: improving overlapping fields quality (graphql#386)
  Validation: context.getFragmentSpreads now accepts selectionSet rather than fragment AST node
  Factor out more closure functions
  Factor out closure functions to normal functions
  Deprecated directive (graphql#384)
  RFC: Directive location: schema definition (graphql#382)
  RFC: Schema Language Directives (graphql#376)
  Export introspection in public API
  Export directive definitions. (graphql#381)
  BUG: Ensure building AST schema does not exclude @Skip and @include (graphql#380)
  documentation of schema constructor
  Revert "Remove all 'instanceof GraphQLSchema' checks" (graphql#377)
  remove all 'instanceof GraphQLSchema' checks (graphql#371)
  Error logging for new interface type semantics (graphql#350)
  Nit: Missing case in grammar for TypeSystemDefinition in comment
  Bug: printer can print non-parsable value
  Factor out suggestion quoting utility
  Minor refactoring
  Minor refactoring of error messages for unknown fields
  ...
Copy link
Copy Markdown

@robertstedman robertstedman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/type/schema.js
line 190
add space after and is an array of '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants