<@U0RQY0KK5> <@U3D8LQ8HK> <@U18M96U5N> Think I’ve ...
# orm-help
s
@nilan @nikolasburk @tim2 Think I’ve found a pretty nasty bug here… We have a
User
type with a many-to-many relationship defined with a
Tag
type. The
createUser
and
updateUser
allow us to specify
tags: { connection: [ { id: "..." }, { id: "..." } ] }
which will create a relationship between the user and the specified tags (via
id
). However, when we use
upsertUser
and do the same, it runs successfully but NONE of the connections/relationships are created.
w
This was fixed and merged 20 days ago though https://github.com/prismagraphql/prisma/pull/2529. You may have your issue fixed by upgrading, I don’t know on which version it was released though.
n
thanks for your feedback, @siyfion. We will consider removing the non-working parts from the API. @weakky the PR you mentioned only concerns itself with
connect
,
disconnect
and
delete
, not with
create
,
update
and
upsert
.
👍 1
s
Yeah, it’s still very much broken in
1.10
w
🤔 :
introduce support to execute connect, disconnect and delete within upsert
. Doesn’t this mean that
connect
mutations are now executed within
upsert
mutations ?
👍 1
s
I don’t mind that it’s broken, as doing a simple get->update/create is easy in a resolver… What I object too is the fact it makes it look as though it’s all implemented and working, with no error!
n
I totally see your point, and I agree. I will report back in that issue soon 🙂
By the way, highlighting multiple users in this channel is usually not necessary. Thanks.
m
I thought we changed the docs to reflect the above?
s
@nilan sorry, I thought I’d found a huge bug after spending an entire day tracking the issue down… Thought it might have been a regression in
1.10
that needed fixing asap.