nico
05/05/2019, 7:41 PMv
05/06/2019, 10:19 AMkitze
05/06/2019, 12:03 PMMaksimReact
05/06/2019, 12:38 PMmutation
query.MaksimReact
05/06/2019, 12:39 PMBearer token
. But it shows message Not Authorized
on Prisma PlaygroudMaksimReact
05/06/2019, 12:40 PMFilip Gulan
05/06/2019, 2:56 PMGraphQL error: The provided idToken is invalid
. I am really lost and it is not last problem I face. There is another things that are unclear for me and graphcool docs seems emptyfaure
05/06/2019, 6:21 PMnico
05/06/2019, 6:55 PMnico
05/06/2019, 6:55 PMdisconnect: true
, nothing happens, the relation is still there.nico
05/06/2019, 7:06 PMjasonmj
05/06/2019, 8:42 PMKurt
05/06/2019, 9:09 PMjasonmj
05/06/2019, 9:39 PMjasonmj
05/06/2019, 9:42 PMJeff
05/07/2019, 12:41 AMTeodoro Meyerhoff
05/07/2019, 3:46 AMKrishna
05/07/2019, 4:15 AMprisma deploy
what is it running? and how is it connecting to the database ?Lukas
05/07/2019, 10:19 AMMorten Bo Rønsholdt
05/07/2019, 11:45 AMtype Business {
id: ID! @id
stores: [Store]
}
type Store {
id: ID! @id
name: String!
business: Business!
}
I want to have a single mutation for updating both the Business
and Store
where the Business
serves as the entrypoint like so:
updateBusiness(
data: {
stores: {
create: {
name: 'My store'
}
}
},
where: {
id: 'some_business_id'
}
) {
id
stores {
name
business {
id
}
}
}
this works really well and I enjoy working with nested mutations. it makes the code much simpler. my challenge is how I implement authorization with this model. imagine a Person
that is a member of a specific `Business`: I need to avoid that this Person
creates a new Business
or connects a Store
from another Business
. it's easy to add authorization on the updateBusiness
mutation entrypoint via e.g. graphql-shield but once the Person
clears the initial check, the Person
can do whatever he/she wants via nested mutations further down.
should I just drop using nested mutations or is there a neat solution to this via e.g. graphq-shield? I've managed to find a few people having the same issue but I don't see a good solution: https://github.com/prisma/prisma/issues/3901Henry Guy Kemp
05/07/2019, 12:57 PMJesper O. Christensen
05/07/2019, 1:31 PMprisma introspect
but the result i get in that project is different? like i only get 62 files instead of 78 in the main project and the relations are wrong.
How is that possible? am i lacking a dependency in the side project?
I introspect a local mysql instance and use a globally installed prisma version 1.31 so those things should not have an impact
Ive tried in 2 side projects and both generate a file different from the main projectHenry Guy Kemp
05/07/2019, 1:44 PMAnaet Hossain
05/07/2019, 2:11 PMYehonatan Levi
05/07/2019, 6:08 PMAiko Ramalho
05/07/2019, 6:56 PMWilliam Kwao
05/07/2019, 11:22 PMrdc
05/08/2019, 6:46 AMrooneyK
05/08/2019, 11:51 AMprisma deploy
we get an error: 'ENOTFOUND': request to <https://api.cloud.prisma.sh/> failed, reason: getaddrinfo ENOTFOUND api.cloud.prisma.sh api.cloud.prisma.sh:443
. This makes sende, since we are offline. How can we bypass this check? Any help with this would be greatly appreciated.Pedro Jardim
05/08/2019, 2:20 PM