Change scoreboard to query instead of subscription.

This commit is contained in:
Patrick Fic
2022-05-19 11:07:51 -07:00
parent e70c11d4e6
commit 3dfc6eede2
3 changed files with 20 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
import { gql } from "@apollo/client";
export const SUBSCRIPTION_SCOREBOARD = gql`
subscription SUBSCRIPTION_SCOREBOARD($start: date!, $end: date!) {
export const QUERY_SCOREBOARD = gql`
query QUERY_SCOREBOARD($start: date!, $end: date!) {
scoreboard(
where: { _and: { date: { _gte: $start, _lte: $end } } }
order_by: { date: asc }