Skip to content

Instantly share code, notes, and snippets.

@sibelius
Forked from janicduplessis/AdminDashboardQuery.ts
Created August 17, 2019 18:56
Show Gist options
  • Save sibelius/4c3ecff0dbc8fc475dd6843abdec5690 to your computer and use it in GitHub Desktop.
Save sibelius/4c3ecff0dbc8fc475dd6843abdec5690 to your computer and use it in GitHub Desktop.
type XYChartData {
x: Float!
y: Float!
label: String
}
type BarChart {
title: String
data: [XYChartData!]!
}
union Chart = BarChart
"""An edge in a connection."""
type ChartEdge {
"""The item at the end of the edge"""
node: Chart!
"""A cursor for use in pagination"""
cursor: String!
}
"""A connection to a list of items."""
type ChartConnection {
"""Information to aid in pagination."""
pageInfo: PageInfo2!
"""A list of edges."""
edges: [ChartEdge!]!
}
adminDashboard(from: Date!, to: Date): ChartConnection!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment