OneGraph / graphiql-explorer

Explorer plugin for GraphiQL
MIT License
904 stars 97 forks source link

[PoC] Add support of custom GraphQL scalars #46

Open FluorescentHallucinogen opened 4 years ago

FluorescentHallucinogen commented 4 years ago

This pull request is proof of concept of using native HTML <input> element for adding support of custom GraphQL scalars into Explorer. It adds support of common Date and HexColorCode custom scalars.

graphiql-explorer-date-custom-scalar-input-day

graphiql-explorer-date-custom-scalar-input-month

graphiql-explorer-hexcolorcode-custom-scalar-input-rgb

graphiql-explorer-hexcolorcode-custom-scalar-input-hsl

FluorescentHallucinogen commented 4 years ago

@sgrove I'm concerned, is there a better way to do that than patching the Explorer itself? What about a plug-in system?