From 72d6c79034f23220f9408245362fe60ee9277a71 Mon Sep 17 00:00:00 2001 From: Nia Calia-Bogan Date: Fri, 9 Jul 2021 19:30:20 -0400 Subject: [PATCH] Workaround for https://github.com/rcos/Telescope/issues/141 Remove cause of internal hasura error --- graphql/rcos/meetings/edit/host_selection.graphql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/graphql/rcos/meetings/edit/host_selection.graphql b/graphql/rcos/meetings/edit/host_selection.graphql index 79129d37..e0127ac4 100644 --- a/graphql/rcos/meetings/edit/host_selection.graphql +++ b/graphql/rcos/meetings/edit/host_selection.graphql @@ -30,7 +30,13 @@ query EditHostSelection($meeting_id: Int!) { mentors: small_groups(order_by: [{title: asc}]) { title - small_group_mentors(order_by: [{user: {first_name: asc}}, {user: {last_name: asc}}]) { + # Adding an extra order-by argument here causes hasura to error + # internally. + # + # See + # - https://github.com/rcos/Telescope/issues/141 + # - https://github.com/hasura/graphql-engine/issues/3796 + small_group_mentors(order_by: [{user: {first_name: asc}}]) { user { ... HostInfo } } }