Graphcool subscriptions: new file uploads

100 views Asked by At

in graphcool, is a file upload a mutation that one can subscribe to?

if not: how would I get realtime updates on newly uploaded files?


I adapted the code from the subscriptions-with-apollo-instagram example, but this does not seem to work:

subscription {
    File (filter: { mutation_in: [CREATED] }) {
        node {
            id
            name
            url
            contentType
        }
    }
}
1

There are 1 answers

0
kindoflike On

from the docs:

Currently, no Server-Side Subscriptions are triggered for the File type.