nhost / nhost-dart

Nhost Dart & Flutter packages

Home Page:https://nhost.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use Hasura GQL subscription query?

vipafattal opened this issue · comments

I need on how to use subscription query with the gql client i.e.

subscription($id:uuid!) {
  products_by_pk(id: $id){
   id
   title
  }
 }

I can see there is SubscriptionOption query but not sure what to provide for the document param, could provide an example for how to use the SubscriptionOption?

thanks