graphql-go / graphql-go/graphql

DateTime field is not serialized in output

Open
#646 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

If i have a schema with DateTime type field as submit a map to resolve:

```
time: "2021-11-12T12:43:56+00:00"
```

it does not work, as always assumes to have time.Time or *time.Time

This behaviour is not convinent when reading JSON from other sources.

For Boolean "true" works same as Bool, but for some reason conversion from string to DateTime is not supported

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.