absinthe-graphql / absinthe_plug

Plug support for Absinthe, the GraphQL toolkit for Elixir
https://hex.pm/packages/absinthe_plug
MIT License
261 stars 163 forks source link

Update assets.ex #286

Closed besedin closed 1 year ago

besedin commented 1 year ago

The main point of the update is bugs in graphiql-workspace 1.1.4 and fixes in version 1.1.5.

For example, the default values of custom scalars are always displayed as false instead of the actual value, because issue in function:

 function buildScalarDef(scalarIntrospection) {
    return new _definition.GraphQLScalarType({
      name: scalarIntrospection.name,
      description: scalarIntrospection.description,
      serialize: function serialize(id) {
        return id;
      },
      // Note: validation calls the parse functions to determine if a
      // literal value is correct. Returning null would cause use of custom
      // scalars to always fail validation. Returning false causes them to
      // always pass validation.
      parseValue: function parseValue() {
        return false;
      },
      parseLiteral: function parseLiteral() {
        return false;
      }
    });
  }

This bug has been fixed in version 1.1.5.

In this PR: