Hello, I can finally deploy my project :slightly_s...
# prisma-whats-new
f
Hello, I can finally deploy my project 🙂 So now I’m trying to set the correct permissions but I got this strange error…
Copy code
"code": 3008,
"message": "No CONNECT permissions",
If someone can just explain what it's means ^^ (I find the error on the source code, but I don't have xp in Scala 😉 )
a
If you get that error while running a mutation, it literally means that you don't have permissions set up to allow you to set the relation between two nodes
f
It's during a mutation, but before I got "insuffisant permission" (that is explicit ^^) So it's a relation… interresting
I'm investigating to know why
If you can have a look. https://github.com/fabien0102/climbing-app/blob/graphcool-framework/graphcool/graphcool.yml Add it's for the
AddTryMutation
, so I guess the permitCreateTry.graphql
n
permission errors always need the specific operation to be able to tell what's going wrong. in this case the mutation.
a
You haven't specified any relation permissions in your service definition
f
Thanks
I will work on this ^^
👍🏻 1
The
permission tab
is totally broken btw 😉 (I can't write queries)
a
Refresh the page after opening it, known issue
f
👍
mmm, I don't find any example of relation permission in the doc 😕 What is the yml syntax?
a
NameOfRelation.connect
,
NameOfRelation.disconnect
,
NameOfRelation.*
f
And what is the difference between connect/disconnect ? 🤓
a
Connect is setting the relation, disconnect is removing the relation
f
Definitively don't understand this concept… Do you have any "real life" example?
t
Have you checked relation mutations in the docs? Pretty straightforward: https://www.graph.cool/docs/reference/graphql-api/mutation-api-ol0yuoz6go/#relation-mutations
f
Exactly what I try to search
(you really need to add a search bar in the doc ^^)
Got it! connect and disconnect 😉 add or remove the link between 2 nodes
Plainly!
https://ibb.co/ghrd7b Just to signal: the example have the same problem as me ^^
😜 1
a
Does this issue apply to your use case? https://github.com/graphcool/framework/issues/398
f
My issue is done 😉 It was just a misunderstand of relations permission 😉
👍🏻 1