Aaron Fulkerson
11/24/2020, 4:35 AMFranciszek Stodulski
11/24/2020, 11:23 AMbackend-v2 on master [!+?] is 📦 v0.0.1 via ⬢ v15.0.1 took 12s
➜ prisma generate
Environment variables loaded from prisma/.env
Error:
TypeError: Cannot read property 'filter' of undefined
at getMappings (/Users/franciszekstodulski/develop/chillout/backend-v2/node_modules/@prisma/client/generator-build/index.js:76364:52)
Franciszek Stodulski
11/24/2020, 11:23 AMfriebetill
11/24/2020, 3:15 PMqueryRaw`SELECT * FROM "User" WHERE "createdAt" > ${'1999-01-08'};`
queryRaw`SELECT * FROM "User" WHERE "createdAt" > '${'1999-01-08'}';`
queryRaw`SELECT * FROM "User" WHERE "createdAt" < ${Date()};`
martin
11/24/2020, 5:06 PMprisma.upsert
? For example:
EventOptions: { connect: [{ eventOptionId: 'some_id' }] }
it connects the EventOptions
field to some_id
, but leaves EventOptions
other relations intact. Is there a way to replace the connections with only the some_id
connection?ryan
11/24/2020, 5:10 PMMarvin
11/24/2020, 8:52 PM@unique
or @default
?
Example @unique
not allowed on @id
fields or now()
not allowed on String
fields?faithful
11/24/2020, 8:59 PMprovidenz
11/25/2020, 2:14 PMRoy Bakker
11/25/2020, 3:01 PMPrismaClientKnownRequestError2: Socket Timeout Error
at PrismaClientFetcher.request (/app/node_modules/@prisma/client/runtime/index.js:78585:15)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at runNextTicks (internal/process/task_queues.js:62:3)
at listOnTimeout (internal/timers.js:523:9)
at processTimers (internal/timers.js:497:7)
at async CardsService.getCard (/app/src/services/Cards.js:20:16)
at async PayNLTerminalService.saveNotification (/app/src/services/PayNLTerminalService.js:116:34) {
code: 'UND_ERR_SOCKET_TIMEOUT',
clientVersion: '2.10.2',
meta: undefined
}
Can anyone please help me?tylim
11/25/2020, 6:00 PMUser table
name
email
or
User Table
email
Profile table
nanme
kani
11/26/2020, 7:38 AMEsau Kang
11/26/2020, 11:56 AMNatalia
Jonathan Cooper
11/26/2020, 7:44 PMJonathan Cooper
11/26/2020, 7:45 PMVille
11/26/2020, 10:53 PMtylim
11/27/2020, 8:05 AMtylim
11/27/2020, 8:05 AMtylim
11/27/2020, 8:05 AMNino Vrijman
11/27/2020, 10:39 AMCristian
11/27/2020, 10:45 AMJonathan Cooper
11/27/2020, 12:33 PMtylim
11/27/2020, 12:42 PMconst User = objectType({
name: 'User',
definition(t) {
t.model.id()
t.model.name()
t.nullable.model.email() //nullable not working
t.model.posts({
pagination: false,
})
},
})
anyone know how to make the model nullable/nonNull, it is not working, the type follow the prisma model whether i use nullable or nonNullltylim
11/27/2020, 7:27 PMtylim
11/27/2020, 7:27 PMts-node --transpile-only src/apollo/schema
tylim
11/27/2020, 7:28 PMtylim
11/27/2020, 7:28 PMtylim
11/27/2020, 7:28 PM{"severity":"WARNING","message":"Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. Initializing firebase-admin will fail"}
tylim
11/27/2020, 7:57 PM