Philipp Rajah Moura Srivastava
05/24/2020, 12:55 AMPhilipp Rajah Moura Srivastava
05/24/2020, 12:55 AMJames Lee
05/24/2020, 5:47 AMthis line is invalid
2. npx prisma generate also errors
model brand {
11 | created_at DateTime @default(now()) @map('createdAt')
|
error: Error validating: This line is invalid. It does not start with any known Prisma schema keyword.
anyone know if I need to do something special for @map to be accepted?
James Lee
05/24/2020, 6:53 AMJames Lee
05/24/2020, 8:07 AMJames Lee
05/24/2020, 8:07 AMonst users = await prisma.user.findMany({
where: {
missions: {
equals: missionId
}
}
})
console.log('users', users)
return users
James Lee
05/24/2020, 8:08 AMJames Lee
05/24/2020, 8:09 AMThe expected type comes from property 'missions' which is declared here on type 'userWhereInput'
Seems this where clause is only suitable for one to many relationsDmitry Belozerov
05/24/2020, 12:34 PMDmitry Belozerov
05/24/2020, 12:36 PMDmitry Belozerov
05/24/2020, 12:36 PMJames Fox
05/24/2020, 6:07 PMnpx ts-node --transpile-only src/schema
within a Docker container? The command doesn’t error for me, but the types are not generatedKate Efimova
05/24/2020, 6:24 PMlocalhost:4000
when trying to run the simplest hello-world example? 😅 Server announces the fact that its running on the following web address but than there's nothing actually therejt
05/24/2020, 9:08 PMPhilipp Rajah Moura Srivastava
05/24/2020, 9:17 PMbob
05/24/2020, 10:07 PMbob
05/24/2020, 10:07 PMd18267f6-c551-4b73-8ebe-ebd15283e5c4
Error: Value for field uid is too long.
at BatchedGraphQLClient.<anonymous> (...\node_modules\http-link-dataloader\dist\src\BatchedGraphQLClient.js:77:35)
Akshat Jaitly
05/24/2020, 10:20 PMAkshat Jaitly
05/24/2020, 10:21 PMversion: '3'
services:
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
managementApiSecret: my-secret
databases:
default:
connector: mongo
schema: akshat
uri: '<mongodb://host.docker.internal:27017>'
Akshat Jaitly
05/24/2020, 10:21 PMbob
05/25/2020, 1:42 AMJovaanc
05/25/2020, 12:24 PMgopidon
05/25/2020, 12:34 PMMatheus Assis
05/25/2020, 1:33 PMAkshat Jaitly
05/25/2020, 3:11 PMTaylor
05/25/2020, 9:11 PMTaylor
05/25/2020, 9:21 PMTaylor
05/25/2020, 9:22 PMbob
05/25/2020, 10:56 PMManthan Mallikarjun
05/25/2020, 11:16 PM