hasura/3factor-example

Fix analytics app to use one top level query per subscription

tirumaraiselvan opened this issue · 4 comments

Currently, analytics app is broken after upgrading Hasura from v0.31.

Currently, we are using this subscription:

              subscription {
                number_orders {
                  count
                }
                number_order_validated {
                  count
                }
                number_order_payment_valid {
                  count
                }
                number_order_approved {
                  count
                }
                number_order_driver_assigned {
                  count
                }
              }

With latest Hasura (and as per GraphQL spec), we can have only one top level field in a subscription. This needs to be fixed by using multiple subscriptions.

@wawhal Do you think I can use namma graphql2chartjs for this chart?

@coco98 we can. I can take this up.

Closed via #16