Open KrishGarg opened 2 years ago
I believe you have to put GQLDate
on types
such as:
makeSchema({
types: [
GQLDate,
anythingElse
]
})
I was getting the same error on 1.3.0
, and had added GQLDate
to my types.
In my case, I was able to circumvent this problem by casting the objectType.definition's t
argument to type any
. Albeit not an ideal solution, it got me moving.
I was following the tutorial at howtographql and I was in the 'Creating Custom Scalers' part and it didn't work.
I had the custom scaler registered by this:
and
and they are being exported from
index.ts
ingraphql
folder. Even the types for this scalar are being generated and even my IDE isn't mad, but when I used thist.nonNull.dateTime("createdAt");
, it gave me the compilation error,I am using nexus version
1.2.0-next.17
, and not the stable 1.1.0 because of #1025.