dardub
01/01/2018, 11:19 PMstefan.libiseller
01/02/2018, 12:59 AMvanna.long
01/02/2018, 1:40 AMDukuo
01/02/2018, 1:54 AMphil
01/02/2018, 2:16 AMgetOrCreateXxx(id)
method on my graphql API, meaning it gets an object by, and if it doesnt’ exist the first time, creates it, should that be on the Queries
or the Mutations
of the root schema?Dukuo
01/02/2018, 3:28 AMdohomi
01/02/2018, 9:31 AMdohomi
01/02/2018, 9:32 AMdohomi
01/02/2018, 9:39 AMhuv1k
01/02/2018, 9:51 AMgraphcool@1.0.0-beta3
?john
01/02/2018, 11:47 AMnull
in the console... however when I try and do this through Apollo it throws expected type errors (eg it doesn't like null
values, because the schema is a relationship). Does anyone have any experience with this?pettanko
01/02/2018, 12:19 PMraul
01/02/2018, 3:30 PMraul
01/02/2018, 3:32 PMraul
01/02/2018, 3:34 PMleo
01/02/2018, 3:46 PM.graphql
?leo
01/02/2018, 3:46 PMStef
01/02/2018, 4:08 PMP_loringhoven
01/02/2018, 4:16 PMbpk
01/02/2018, 4:22 PMjan
01/02/2018, 4:50 PMoperationBefore
hooks - is it planned that it would be possible to update relation fields of a mutation as part of the function as well?
I have a simple double-linked list implementation and would like to automatically add new nodes to the HEAD by taking the current HEAD and pointing the new node at it - even though my current operationBefore
function sets the reference nextId
field correctly in the response, the new node is still created with null
in the next
fieldpeterp
01/02/2018, 7:06 PMpeterp
01/02/2018, 7:07 PMStef
01/02/2018, 7:37 PMStef
01/02/2018, 7:37 PMlogan
01/02/2018, 9:16 PM[object Object]: [object Object]
signor_busi
01/02/2018, 9:39 PMmutation {
createPerson(
childern: [{
name: "SomeName"
}]
) {
id
}
So creating a relation with one mutation. Now it just gives me Insufficient permissions for this mutation
. It took me soooo long to figure out it's actually this "inline relation mutation" that's causing the permission error! But now my question is: Is this intended behaviour? Are these kinds of mutations not allowed anymore? Strange thing is that when I allow all operations (so if I do operation: "*") it works fine, but if I change to per-model permissions, it doesn't worksignor_busi
01/02/2018, 9:40 PMGabriel
01/02/2018, 9:48 PMOsha Foster
01/02/2018, 11:08 PM