Is anyone familiar with this error:
Property 'dateTime' does not exist on type 'ObjectDefinitionBlock<"Link">
I guess it's a Nexus & Typescript issue. Any suggestions will be helpful.
👀 1
✅ 1
Annu Singh
07/09/2022, 7:51 AM
The issue is resolved when writing object definition in Nexus like this:
t.field('createdAt', {type: 'DateTime'}) instead of this:
t.dateTime('createdAt').