Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix analytics app to use one top level query per subscription #13

Closed
tirumaraiselvan opened this issue Feb 25, 2019 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@tirumaraiselvan
Copy link
Collaborator

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.

@coco98
Copy link

coco98 commented Feb 25, 2019

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

@wawhal
Copy link
Contributor

wawhal commented Feb 25, 2019

@coco98 we can. I can take this up.

@rikinsk-zz
Copy link

@rikinsk-zz rikinsk-zz added the bug Something isn't working label May 24, 2019
strongSoda added a commit to strongSoda/3factor-example that referenced this issue May 27, 2019
strongSoda added a commit to strongSoda/3factor-example that referenced this issue May 27, 2019
@tirumaraiselvan
Copy link
Collaborator Author

Closed via #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants