v0.3.0
Breaking/New:
isTypeOf
is now called (if defined) to assert that GraphQL object types are executing against the correct values #38- Field
resolve
functions now have a new API:resolve(value, args, info)
, whereinfo
is an object which contains the same information which used to be separate arguments, and includes more useful stuff! https://github.com/graphql/graphql-js/blob/master/src/type/definition.js#L359 graphql()
no longer formats its errors.result.errors
is now a list ofGraphQLError
instances, which provides useful information including stack traces.- Arguments and Input Object Fields not provided are not set on the internal JS objects. The previous behavior was to set
null
for these arguments and fields. - Scalar definition
coerce
andcoerceLiteral
have been renamed toserialize
andparseLiteral
respectively. - Scalar definitions may now define
parseValue
which is used when interpreting variable values of that type. Previouslycoerce
was being reused for this purpose.
Fixed:
- Nested input objects are no longer excluded by introspection.
- Fix issue where a fragment spread with missing definition breaks the validator.