Lotafak
02/27/2019, 1:47 PMswangy
02/27/2019, 2:02 PMswangy
02/27/2019, 2:02 PM? Set up a new Prisma server or deploy to an existing server? Use existing database
? What kind of database do you want to deploy to? MySQL
? Does your database contain existing data? No
? Enter database host localhost
? Enter database port 8889
? Enter database user root
? Enter database password root
Connecting to database !
▸ Connection terminated unexpectedly
Get in touch if you need help: <https://www.prisma.io/forum/>
To get more detailed output, run $ export DEBUG="*"
Madhav
02/27/2019, 4:41 PMpablo
02/27/2019, 5:10 PM--js
to your nexus-prisma-generate
command in prisma.yml
and 2.) in schema.js
replace __dirname
with path.resolve(__dirname)
. I almost gave up on prisma-nexus
until I figured this out. Took me a while to find the fix so I wanted to share.dnbkr
02/28/2019, 4:09 AMtype Event {
id: ID!
ticketRequests: [TicketRequest]
}
enum TicketRequestStatus {
APPROVED
DECLINED
PENDING
}
type TicketRequest: {
id: ID!
event: Event
status: TicketRequestStatus
}
schema:
type Query {
event(id: ID!): Event
}
and here's my query:
const EVENT_QUERY = gql`
query EVENT_QUERY(id: ID!, filter({ status: "APPROVED" }) ){
event(id: $id){
id
ticketRequests {
status
}
}
}
`
dnbkr
02/28/2019, 4:10 AMstatus: "APPROVED"
dnbkr
02/28/2019, 4:13 AMfilter({ ticketRequests: { status: "APPROVED" } })
arsan.irianto
02/28/2019, 10:19 AMEarl
02/28/2019, 10:30 AMEarl
02/28/2019, 10:30 AMKerdo
02/28/2019, 12:19 PMimpowski
02/28/2019, 12:20 PMbkstorm
02/28/2019, 12:20 PMtype Category {
id: ID! @unique
name: String!
description: String
parent: Category @relation(name: "SubCategories")
children: [Category!]! @relation(name: "SubCategories")
}
Alex
02/28/2019, 3:17 PMCameron Gorrrie
02/28/2019, 3:53 PMCameron Gorrrie
02/28/2019, 3:54 PMPaul Duffy
02/28/2019, 4:29 PMNick
02/28/2019, 6:04 PMCCBCodeMonkey
02/28/2019, 6:06 PMCCBCodeMonkey
02/28/2019, 6:07 PMCCBCodeMonkey
02/28/2019, 6:07 PMNick
02/28/2019, 6:08 PMCCBCodeMonkey
02/28/2019, 6:08 PMCCBCodeMonkey
02/28/2019, 6:08 PMCCBCodeMonkey
02/28/2019, 6:08 PMCCBCodeMonkey
02/28/2019, 6:09 PMCCBCodeMonkey
02/28/2019, 6:10 PMCCBCodeMonkey
02/28/2019, 6:10 PMCCBCodeMonkey
02/28/2019, 6:11 PM