Skip to content

Convert arbitrary scalars to AST. #1815

Closed
@anhldbk

Description

@anhldbk

Hi guys,

I'm trying to make a configuration language based on GraphQL (so I don't have write lexer/parser on my own). I want to support JSON as an input type by using graphql-type-json. But I've got an issue of parsing AST as described by this issue taion/graphql-type-json#73.

@taion tell me that

That utility function (astFromValue) doesn't support converting arbitrary scalars to AST

I've found a hack to overcome the issue. Should I make a PR against this one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions