Nick
11/30/2018, 10:14 AMterion
11/30/2018, 11:06 AMartindaniel
11/30/2018, 11:49 AMKorn
11/30/2018, 1:19 PMKorn
11/30/2018, 1:20 PMMukul
11/30/2018, 1:58 PMMukul
11/30/2018, 1:58 PMCraig
11/30/2018, 2:15 PMGorodov Maksim
11/30/2018, 2:32 PMHenry
11/30/2018, 6:41 PMimport { CalendarResolvers } from '../generated/graphqlgen'
export const Calendar: CalendarResolvers.Type = {
...CalendarResolvers.defaultResolvers,
events: (parent, args, ctx) => {
return ctx.db.calendar({ id: parent.id }).events()
},
}
Henry
11/30/2018, 6:42 PMevents: (parent, args, ctx) => {
return ctx.db.calendarEvents({
where: {
calendar: {
id: parent.id,
},
},
})
},
force
11/30/2018, 9:24 PMEcleptic
11/30/2018, 10:58 PMimmediato
11/30/2018, 11:25 PMryannealmes
12/01/2018, 12:46 AMenum ProjectType {
ML
BLOCKCHAIN
IOS
ANDROID
WEB
}
and I want to pull it on the front end. I can do this via introspection, but if I want custom casing like ML, Blockchain, IOs, Android, Web
it would be difficult for the consumer to do this in a generic/dynamic way. Is there a way to add meta data to enum values so that it comes through on introspection? Any help would be appreciated!Moritz
12/01/2018, 2:25 AMIvan Petrushev
12/01/2018, 8:07 AMGorodov Maksim
12/01/2018, 9:51 AMLobo
12/01/2018, 12:04 PMwhere
but it's case sensitive so it's not a good solution
I've also seen some tutorials using external services.
I'd like to do something as simple as possible... with queries if possible.... 🙂Mark Volkmann
12/01/2018, 2:45 PMAndres Montoya
12/01/2018, 2:53 PMAlex
12/01/2018, 2:59 PMJson
in Prisma and has to be resolved into a specific type through the GraphQL Gateway. In my case I’m running apollo server.Chris
12/01/2018, 3:19 PMalexanbj
12/01/2018, 4:12 PMMark Volkmann
12/01/2018, 4:57 PMdocker exec -it {container-id} psql -U prisma
. That starts psql fine, but when I enter \d
it says there are no relations.cmckinstry
12/01/2018, 6:45 PMcmckinstry
12/01/2018, 6:48 PMcmckinstry
12/01/2018, 6:49 PMpllumh
12/01/2018, 10:42 PMupdateUser
, while still maintaining the list of old posts connected to the user ?pllumh
12/01/2018, 10:43 PMmutation {
updateUser(data: { posts: { create: { title: "Title" } } }) {
id
}
}