ts2gql icon indicating copy to clipboard operation
ts2gql copied to clipboard

Always writing 'scalar Date' on the beginning of schema

Open FelipeCoimbra opened this issue 6 years ago • 1 comments

Why does it have this behavior? Can we remove it?

FelipeCoimbra avatar Dec 28 '18 15:12 FelipeCoimbra

This is to support uses of the JavaScript Date type—it needs to be special cased so that we're not walking all the built in fields of the Date interface.

Would definitely be interested in a patch that only emits that scalar Date line if you actually use a Date, though!

nevir avatar Jan 09 '19 01:01 nevir