jasonmj
04/06/2019, 5:50 PMjasonmj
04/06/2019, 5:52 PMjasonmj
04/06/2019, 5:53 PMjasonmj
04/06/2019, 5:54 PMExpected type [String!], found {set: ["a", "b", "c"]}
Robert Hall
04/06/2019, 7:02 PMRobert Hall
04/06/2019, 7:36 PMdennis
04/07/2019, 3:10 AMhalborg
04/07/2019, 1:19 PMgraphqlgen
or nexus
- Does anyone have any experiences they can share, or know something about the projects' development/roadmap/commitment or something that might point in the direction of one or the other?
I'm working on another project where we are using plain TS graphql-tools declarations of types. Here, I like the power of TS over SDL and the intellisense, but it gets quite verbose. I like the idea of graphqlgen
to minimize boilerplate, but I'm having a hard time discerning whether it's a good approach when the project growsJames
04/07/2019, 3:27 PMgjergj kadriu
04/07/2019, 6:57 PMBjoern
04/07/2019, 7:57 PMbkstorm
04/08/2019, 2:29 AMecho $PRISMA_ENDPOINT
<http://localhost:4466/app/dev>
But when I run prisma deploy
, it show a warning:
â–¸ [WARNING] in
â–¸ /path/.../prisma/prisma.yml:
â–¸ A valid environment variable to satisfy the declaration
â–¸ 'env:PRISMA_ENDPOINT' could not be found.
Here is prisma.yml:
endpoint: ${env:PRISMA_ENDPOINT}
How can I fix it?rdc
04/08/2019, 4:47 AM"message": "request to <http://52.64.252.110/> failed, reason: connect EMFILE 52.64.252.110:80 - Local (undefined:undefined)",
any Idea why?ahebwa49
04/08/2019, 6:57 AMdatamodel.prisma
as shown below, i have a permissions and cart field on the User type but when i run prisma deploy and check my local postgres db, I don't find those fields and it's really breaking my application.ahebwa49
04/08/2019, 6:57 AMenum Permission {
ADMIN
USER
ITEMCREATE
ITEMDELETE
ITEMUPDATE
PERMISSIONUPDATE
}
type User {
id: ID! @unique
name: String!
email: String! @unique
password: String!
resetToken: String
resetTokenExpiry: Float
permissions: [Permission]
cart: [CartItem!]!
}
type Item {
id: ID! @unique
title: String!
description: String!
image: String
largeImage: String
price: Int!
user: User!
}
type CartItem {
id: ID! @unique
quantity: Int! @default(value: 1)
item: Item! #relationship to item
user: User! # relationship to user
}
ahebwa49
04/08/2019, 6:59 AMSte O'Neill
04/08/2019, 9:04 AMpostgres
prisma
frontend
backend
I seem to be having loads of issues so should i do it another way?siyfion
04/08/2019, 10:13 AMERROR: GraphQL Error (Code: 400)
returned and an error html response, but no real useful error code.Jeff Aron
04/08/2019, 10:16 AMNick
04/08/2019, 10:27 AMPhilipp
04/08/2019, 12:49 PMprismagraphql/prisma:1.29
and a MongoDB. I use the basic example for embedded from the website:
type City {
id: ID! @id
name: String!
coordinates: Coordinates
}
type Coordinates @embedded {
latitude: Float!
longitude: Float!
}
Opening http://localhost:4466/_admin gives me directly the following error:
[
{
"message": "Cannot query field 'id' on type 'Coordinates'. (line 8, column 7):\n __id: id\n ^",
"locations": [
{
"line": 8,
"column": 7
}
]
}
]
I was expecting embedded documents don't need an ID for MongoDB? Am I doing something wrong? Thanks!siyfion
04/08/2019, 2:25 PMonDelete: CASCADE
fire when using the deleteManyXXX
syntax?Jeany Meza
04/08/2019, 2:54 PMJeany Meza
04/08/2019, 2:56 PMJeany Meza
04/08/2019, 3:18 PMChrisBull
04/08/2019, 4:43 PMenum MessageType {
TEXT
PICTURE
LOCATION
}
type ChatMessage {
id: ID! @unique
chat: Chat!
sender: User!
content: String
createdAt: DateTime!
type: MessageType
}
type Chat {
id: ID! @unique
name: String
picture: String
members: [User!]! @relation(name: "ChatMembers")
owner: User! @relation(name: "ChatAdmin")
messsages: [ChatMessage!]!
}
yucun
04/08/2019, 10:02 PMcaptaindaylight
04/08/2019, 10:58 PMprisma.yml should NOT have additional properties. additionalProperty: generate
my prisma.yml looks like this:
endpoint: MY_ENDPOINT
datamodel: datamodel.graphql
generate:
- generator: javascript-client
output: .src/generated/prisma-client/
hooks:
post-deploy:
- prisma generate
Fi1osof
04/09/2019, 2:27 AMFi1osof
04/09/2019, 2:28 AM