Kevin S
11/19/2018, 10:50 PMroberto.guerra
11/19/2018, 10:57 PMed
11/19/2018, 11:04 PMhinsxd
11/20/2018, 2:52 AMhinsxd
11/20/2018, 2:53 AMhinsxd
11/20/2018, 2:56 AMAndres Montoya
11/20/2018, 3:37 AMprilutskiy
11/20/2018, 7:21 AMdatamodel.prisma
?
Use case:
type User {
id: ID! @unique
security: UserSecurity!
}
type UserSecurity {
password: String!
refreshTokens: [String!]!
roles: [String!]!
}
prilutskiy
11/20/2018, 7:22 AMUserSecurity
table to be created with 1-1 relation to User
Gleb Feklistov
11/20/2018, 8:05 AMGleb Feklistov
11/20/2018, 8:06 AMGleb Feklistov
11/20/2018, 8:08 AMIndustrial
11/20/2018, 8:47 AMIndustrial
11/20/2018, 8:47 AMgenerate:
- generator: javascript-client
output: ./generated/prisma-js
- generator: graphql-schema
output: ./generated/prisma-gql
Industrial
11/20/2018, 8:47 AMIndustrial
11/20/2018, 8:48 AMdocker-compose run prisma bash
and then it just starts the prisma process in the container and doesn't give me a shell.Industrial
11/20/2018, 8:48 AMVitch
11/20/2018, 10:37 AMhalborg
11/20/2018, 12:11 PMprilutskiy
11/20/2018, 12:41 PMprilutskiy
11/20/2018, 12:42 PMCraig
11/20/2018, 12:43 PMCraig
11/20/2018, 12:43 PMprolink007
11/20/2018, 1:59 PMk0ff33
11/20/2018, 2:46 PMgraphqlgen
as well but don’t know how to configure it properly. Is there a guide on how to pair it both together?roberto.guerra
11/20/2018, 2:46 PMpostgres_1_a6ab32ab94c9 | 2018-11-20 14:39:12.010 UTC [31] ERROR: relation "my-project$dev.MyTable" does not exist at character 33
postgres_1_a6ab32ab94c9 | 2018-11-20 14:39:12.010 UTC [31] STATEMENT: select exists (select "id" from "my-project$dev"."MyTable")
prisma_1_fb551e0dcf29 | org.postgresql.util.PSQLException: ERROR: relation "my-project$dev.MyTable" does not exist
danlucraft
11/20/2018, 3:43 PMconst posts = await ctx.prisma.posts(null, " { id } ")
And here’s the corresponding log from prisma client lib:
Query:
{
posts {
id
title
url
}
}
Why…. does the logged query have title
and url
in when I’m specifying only "{ id }"
in my query call?andykay
11/20/2018, 4:10 PMGuus
11/20/2018, 4:34 PMGuus
11/20/2018, 4:34 PM