Skip to content

Missing support for String and Object arrays #166

Closed
@anotender

Description

@anotender

Application fails when in encounters String[] or Object[] while building schema. It is missing in the scalarsRegistry in the JavaScalars class and the library tries to register it but it fails because of regexp check failure. The solution that works for our case is to add following entries to the scalarsRegistry:

scalarsRegistry.put(String[].class, new GraphQLScalarType("StringArray", "StringArray type", new GraphQLObjectCoercing()));
scalarsRegistry.put(Object[].class, new GraphQLScalarType("ObjectArray", "ObjectArray type", new GraphQLObjectCoercing()));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions