Could not retrieve NaiveDateTime from Value in src/libcore/option.rs:1034:5
Error:
Oops, an unknown error occured! This is on us, you did nothing wrong.
It occured in the (fieldResolver || defaultFieldResolver)() invocation in /Users/gaunyr/dev/teams/dtb-portal/backend/node_modules/graphql-extensions/src/index.ts:155:61
151 // If no resolver has been defined for a field, use the default field resolver 152 // (which matches the behavior of graphql-js when there is no explicit resolve function defined). 153 // TODO: Find a way to respect custom field resolvers, see https://github.com/graphql/graphql-js/pull/865 154 try { → 155 const result = (fieldResolver || defaultFieldResolver)(source, args, context, info);
Reason: Could not retrieve NaiveDateTime from Value in src/libcore/option.rs:1034:5
Hey,
Can you please share a minimal reproduction of the issue with us?
model Source {
id Int @id
createdAt DateTime @map("created_at")
name String?
@@map("sources")
}
const Source = objectType({
name: "Source",
definition(t) {
t.model.id();
t.model.name();
t.model.createdAt();
}
});
then query in playground:
query{
findManySource{
id
name
}
}
and you get the error below and the server connection to the DB is hosed....server needs a restart:
Error:
Oops, an unknown error occured! This is on us, you did nothing wrong.
It occured in the `(fieldResolver || defaultFieldResolver)()` invocation in /Users/gaunyr/dev/teams/dtb-portal/backend-prisma2/node_modules/graphql-extensions/src/index.ts:155:61
151 // If no resolver has been defined for a field, use the default field resolver
152 // (which matches the behavior of graphql-js when there is no explicit resolve function defined).
153 // TODO: Find a way to respect custom field resolvers, see https://github.com/graphql/graphql-js/pull/865
154 try {
→ 155 const result = (fieldResolver || defaultFieldResolver)(source, args, context, info);
Reason: Could not retrieve NaiveDateTime from Value in src/libcore/option.rs:1034:5
***** ------ if I take out the createdAt all is good which is not ideal
I am unable to reproduce this with [email protected], binary version: 33e5fc84b6bd61602f8d634beb558230ca3e3054

Can you please tell me whether your database is introspected or you are starting from scratch
It’s being introspected...I’ll try and get u a trimmed down schema tonight that shows it isolated
On Mon, Aug 19, 2019 at 12:37 PM Harshit Pant [email protected] wrote:
I am unable to reproduce this with [email protected], binary version: 33e5fc84b6bd61602f8d634beb558230ca3e3054
[image: image] https://user-images.githubusercontent.com/22195362/63286598-0ab5fe80-c2d6-11e9-836d-8c0656a3a86a.png
Can you please tell me whether your database is introspected or you are starting from scratch
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/prisma/photonjs/issues/189?email_source=notifications&email_token=AAGJICHQTTQBG3GEGXPCIELQFLK47A5CNFSM4ILQCUJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4TXJSA#issuecomment-522679496, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGJICCDK3R7PHZEX5JG74LQFLK47ANCNFSM4ILQCUJQ .
Reminding @rgauny, and have a 🐿 ;)
Any update on this? Having the same issue with zero dates in mysql db. it was introspected just fine
Closing this as a duplicate of https://github.com/prisma/photonjs/issues/226
If you think that this issue is different, please open a new issue with a minimal reproduction and tag me there.