goto-bus-stop
released this
06 Jun 11:38
·
438 commits
to main
since this release
Features
-
accept any primitive value type for custom scalar validation, by lrlna in pull/575
If you provide a value to a custom scalar in your GraphQL source text, apollo-compiler
now accepts any value type. Previously it was not possible to write values for custom
scalars into a query or schema because the value you wrote would never match the custom
scalar type.This now works:
scalar UserID @specifiedBy(url: "https://my-app.net/api-docs/users#id") type Query { username (id: UserID): String }
{ username(id: 575) }
-
add type name to the
UndefinedField
diagnostic data, by goto-bus-stop in pull/577When querying a field that does not exist, the type name that's being queried is stored on
the diagnostic, so you can use it when handling the error.