Aldrin Ronco
11/04/2019, 5:45 PMAldrin Ronco
11/04/2019, 5:45 PMAldrin Ronco
11/04/2019, 5:46 PMAldrin Ronco
11/04/2019, 5:46 PMAldrin Ronco
11/04/2019, 5:47 PMCorey Snyder
11/04/2019, 9:23 PMBasix
11/05/2019, 3:17 AMname
in my User
type, so when I create user without name, it creates name: null
in new row.
But in the typescript type definition, the name field is described as name?: string
, which means it cannot handle null
.Basix
11/05/2019, 3:17 AMTim B
11/05/2019, 8:22 AMEhsan Sarshar
11/05/2019, 10:25 AMIvan
11/05/2019, 1:49 PMIvan
11/05/2019, 1:49 PMIvan
11/05/2019, 1:50 PMIvan
11/05/2019, 1:51 PMDima
11/05/2019, 2:37 PMERROR: Token is issued in the future (iat).
when trying to prisma deploy
. I made sure my server and local environments are using the same timezone. I made changes to the timezones recently, so maybe the problem somehow persists from the time when they used to be different. Though I also generated new token with prisma token --env-file variables.env
. Any idea where to look at?Aldrin Ronco
11/05/2019, 3:53 PMEhsan Sarshar
11/05/2019, 6:11 PMtmoney
11/05/2019, 7:14 PM{
"errors": [
{
"message": "Cannot read property 'body' of undefined",
"locations": [
{
"line": 149,
"column": 3
}
],
"path": [
"syncState"
]
}
],
"data": null
}
This is how my syncState
subscription is set up:
import { subscriptionField } from 'nexus';
import { Context } from '../../dbTypes';
export const syncStateSubscription = subscriptionField('syncState', {
type: 'SyncStateSubscriptionPayload',
subscribe(root, args, ctx: Context) {
return ctx.prisma.$subscribe.syncState() as any;
},
resolve(payload) {
return payload;
},
});
tmoney
11/05/2019, 7:16 PMsyncState
property of ctx.prism.$subscribe.syncState
it is definitely available and defined:
syncState: (
where?: SyncStateSubscriptionWhereInput
) => SyncStateSubscriptionPayloadSubscription;
Tim B
11/05/2019, 8:12 PMNesh
11/06/2019, 5:41 AMBen
11/06/2019, 10:45 AMEhsan Sarshar
11/06/2019, 10:54 AMrongodog
11/06/2019, 5:46 PMRudy Luthi
11/06/2019, 10:50 PMRudy Luthi
11/06/2019, 10:52 PMJames David Bradly Carballo
11/07/2019, 3:47 AMprisma deploy
, I had this error:
DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
Anyone who got a solution for this?James David Bradly Carballo
11/07/2019, 3:47 AMPratik
11/07/2019, 4:54 AMTim Holmes-Mitra
11/07/2019, 7:11 AM