Josef Henryson
09/24/2019, 3:04 PMconst Shelf = prismaObjectType({
name: 'Shelf',
definition: t => {
t.prismaFields(['*'])
t.field('hasBooks', {
type: 'Boolean',
resolve: async (root, args, ctx) => {
return await ctx.prisma.booksConnection({ where: { shelf: { id: root.id }}})
.aggregate()
.count() > 0
}
})
}
})
Quinn Vaughn
09/24/2019, 5:05 PMMark N Carpenter Jr
09/24/2019, 5:47 PMprisma init
and an existing MySQL database. Introspection fails? or completes and then fails with
RelationalIntrospectionResult Relations enums resolved. +3ms
!
TypeError: Cannot read property 'type' of undefined
Totally new to working with prisma. any help would be much appreciated.Muneeb Akhlaq
09/25/2019, 7:41 AMjasonkuhrt
Ismail Arafa
09/25/2019, 8:12 PMKimble
09/25/2019, 10:52 PMCyrus David
09/26/2019, 2:01 AMElias GM
09/26/2019, 6:11 AMjbe
09/26/2019, 8:19 AMMartĂ CrespĂ
09/26/2019, 8:38 AMThomas Leveque
09/26/2019, 9:46 AMprisma init myproject
and chose existing database then mongoDB then i pass this string connextion <mongodb+srv://userName:<password>@cluster0-q2tur.mongodb.net/test?retryWrites=true&w=majority>
with the userName and password of the user i have created in mongoDB Atlas, the following deprecationWarning comes out and i don't know how to fix it.
Thx for your help ! đ
Prisma CLI version: prisma/1.34.8 (darwin-x64) node-v12.10.0
Darryl
09/26/2019, 10:17 AMnexus-prisma
0.3.8
right now and I'm interested in Prisma 2 but held off all summer during the early stages.Eshwar Yaddanapudi
09/26/2019, 11:23 AMEshwar Yaddanapudi
09/26/2019, 11:24 AMIgor Vuleta
09/26/2019, 12:55 PMCuong Duy Nguyen
09/26/2019, 4:43 PMJamesJ
09/26/2019, 5:00 PMOscar
09/26/2019, 6:56 PMMichael F
09/26/2019, 8:46 PMH
09/26/2019, 9:16 PMpettanko
09/26/2019, 11:52 PMPete Perpich
09/27/2019, 12:30 AMprisma-chobo
09/27/2019, 3:45 AMprisma-chobo
09/27/2019, 3:48 AMEmiel
09/27/2019, 8:45 AMKJReactor
09/27/2019, 7:27 PM...
const fields = {username, ...args};
fields.books = {connect: {username: username}}
return ctx.prisma.createBooks(books)
Books should returns a list correctly but the above (mutation) returns an error that property username does not existCorey Snyder
09/27/2019, 8:48 PMArnav Verma
09/27/2019, 9:06 PMArnav Verma
09/27/2019, 9:06 PM