Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Subscription field must return Async Iterable. Received: undefined.

Subscription: {
  post: () => ({
    PostSubscription: {}
  })
},
PostSubscription: {
  postAdded: {
    subscribe: () => pubSub.asyncIterator(['postAdded'])
  }
}
Source by www.gitmemory.com #
 
PREVIOUS NEXT
Tagged: #Subscription #field #return #Async
ADD COMMENT
Topic
Name
8+4 =