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

Update assets.ex #286

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Update assets.ex #286

merged 1 commit into from
Nov 23, 2023

Conversation

besedin
Copy link
Contributor

@besedin besedin commented Jul 13, 2023

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:

  • updated the graphiql-workspace asset from version 1.1.4 to version 1.1.5

Upgrade graphiql-workspace to v1.1.5
@benwilson512 benwilson512 merged commit 3a984cc into absinthe-graphql:main Nov 23, 2023
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

Successfully merging this pull request may close these issues.

2 participants