sebastien
11/24/2017, 11:43 PMJournalEntryOnFile
where there’s a one to one relation between a journal entry and a file upload.
I’m trying to find some good code examples to see what I’m doing wrong, but struggling to find some good examples of permission queries for relations.
I’ve tried many variations similar to this:
query($journalEntry_id: ID!, $fileFile_id: ID!) {
SomeFileExists(
filter: { AND: [{ id: $fileFile_id }, { journalEntry: $journalEntry_id }] }
)
}
I’m getting errors like '$journalEntry_id' of type 'ID!' used in position expecting type 'JournalEntryFilter'
What I want to do is limit connections and disconnections to that relation to the owner of the JournalEntry
node, which is called user
.
It’s a pretty simple use-case and I’m sure that it’s just me doing something silly with that query, so any pointer would be super appreciated.alexanbj
11/25/2017, 10:15 AMalexanbj
11/25/2017, 10:15 AMalexanbj
11/25/2017, 10:16 AMsebastien
11/25/2017, 6:42 PMVariable '$journalEntry_id' expected value of type 'ID!' but value is undefined. Reason: Expected non-null value, found null.
alexanbj
11/25/2017, 6:56 PMsebastien
11/25/2017, 8:39 PMalexanbj
11/25/2017, 8:55 PMsebastien
11/25/2017, 9:11 PM