evondev
04/24/2019, 11:03 AMDevion Villegas
04/24/2019, 11:17 AMAndrei Bacescu
04/24/2019, 12:28 PMChinmay Ajit Acharya
04/24/2019, 12:51 PMkamalhunzai
04/24/2019, 1:33 PMNelson Pecora
04/24/2019, 3:50 PMdatamodel.prisma
to fit the new spec, and wiped all the tables in my database).
Here's my error:
Content
✖️ The relation fieldIn my datamodel, this is how I specified `Content`:must specify abundle
directive:@relation
@relation(name: "MyRelation")
type Content @db(name: "content") {
id: ID! @id
contentType: ContentType! # ENUM
bundle: Bundle @relation(link: INLINE)
image: Image @relation(link: INLINE)
}
Am I missing something obvious? bundle
and image
are 1:1 relations.Nelson Pecora
04/24/2019, 4:00 PM@id
can be used on ID
, UUID
, and Int
, but I get this error when I try that:
The fieldWillis marked as id must have one of the following types:fooID
,ID!
.Int!
fooID: ID! @id(strategy: NONE)
allow me to set UUIDv4 IDs on this?James Bellamy
04/24/2019, 4:01 PMprisma deploy
which doesn’t really work with an existing database as I don’t want prisma modifying the database. I’ve been unable to rollback to a previous working version of prisma and the datamodel, and can’t run my production setup so my site is currently offline as a result =/rem
04/24/2019, 4:43 PMFrancis John
04/24/2019, 9:30 PMPost
where each post has many `Tag`s. It looks like I have to use a workaround via https://github.com/prisma/prisma/issues/2194 which requires I check for existence of each tag and use connect
or create
depending on existence of each tag. Does that mean I have to make a DB call for each tag I want to upsert (e.g. 10 tags requires 10 existence checks)?Mike Shreek
04/25/2019, 12:59 AMMike Shreek
04/25/2019, 1:00 AMMike Shreek
04/25/2019, 1:01 AMevondev
04/25/2019, 5:17 AMkitze
04/25/2019, 7:53 AMTABLE
or INLINE
for relation (whatever was the default behaviour before the syntax change)?Nicholas Lawrence
04/25/2019, 10:33 AMNicholas Lawrence
04/25/2019, 10:39 AMNicholas Lawrence
04/25/2019, 10:40 AMNicholas Lawrence
04/25/2019, 10:40 AMsarink
04/25/2019, 11:36 AMJustin Voitel
04/25/2019, 6:16 PMcontext.headers['Authorization']
is always undefined
.
Chrome also shows me: 'Provisional headers are shown' in the Network section so it might get blocked by something? (Maybe by CORS ?)
Help would be much appreciated 🙏Stephen Jensen
04/25/2019, 6:28 PMTangoJuliett
04/25/2019, 6:36 PMcaptaindaylight
04/25/2019, 10:12 PMgoonit
04/26/2019, 2:05 AMgoonit
04/26/2019, 2:05 AMgoonit
04/26/2019, 2:06 AMCCBCodeMonkey
04/26/2019, 4:05 AMCCBCodeMonkey
04/26/2019, 4:05 AMCCBCodeMonkey
04/26/2019, 4:06 AM