Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane committed Oct 14, 2024
1 parent 4314f90 commit 96f926a
Showing 1 changed file with 136 additions and 22 deletions.
158 changes: 136 additions & 22 deletions app/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ input Aggregate {
histogramValues: HistogramValues = null
}

union AggregateResult = BooleanAggregation | DataAggregation | IntAggregation | FloatAggregation | RootAggregation | StringAggregation
union AggregateResult =
BooleanAggregation
| DataAggregation
| IntAggregation
| FloatAggregation
| RootAggregation
| StringAggregation

interface Aggregation {
path: String!
Expand All @@ -28,7 +34,14 @@ input AggregationForm {
viewName: String = null
}

union AggregationResponses = CountResponse | BoolCountValuesResponse | IntCountValuesResponse | StrCountValuesResponse | DatetimeHistogramValuesResponse | FloatHistogramValuesResponse | IntHistogramValuesResponse
union AggregationResponses =
CountResponse
| BoolCountValuesResponse
| IntCountValuesResponse
| StrCountValuesResponse
| DatetimeHistogramValuesResponse
| FloatHistogramValuesResponse
| IntHistogramValuesResponse

type AppConfig {
colorBy: ColorBy!
Expand Down Expand Up @@ -434,7 +447,9 @@ input LightningInput {
input LightningPathInput {
path: String!

"""exclude these values from results"""
"""
exclude these values from results
"""
exclude: [String!] = null
first: Int = 200
search: String = null
Expand All @@ -444,7 +459,13 @@ interface LightningResult {
path: String!
}

union LightningResults = BooleanLightningResult | DateLightningResult | DateTimeLightningResult | FloatLightningResult | IntLightningResult | StringLightningResult
union LightningResults =
BooleanLightningResult
| DateLightningResult
| DateTimeLightningResult
| FloatLightningResult
| IntLightningResult
| StringLightningResult

type MaskColor {
color: String!
Expand All @@ -470,19 +491,81 @@ type MediaURL {
}

type Mutation {
setColorScheme(subscription: String!, colorScheme: ColorSchemeInput!): ColorScheme!
setDatasetColorScheme(subscription: String!, datasetName: String!, colorScheme: ColorSchemeInput = null): ColorScheme
setFieldVisibilityStage(subscription: String!, session: String, stage: BSON): Boolean!
setDataset(subscription: String!, session: String, name: String, viewName: String): Boolean!
setColorScheme(
subscription: String!
colorScheme: ColorSchemeInput!
): ColorScheme!
setDatasetColorScheme(
subscription: String!
datasetName: String!
colorScheme: ColorSchemeInput = null
): ColorScheme
setFieldVisibilityStage(
subscription: String!
session: String
stage: BSON
): Boolean!
setDataset(
subscription: String!
session: String
name: String
viewName: String
): Boolean!
setGroupSlice(subscription: String!, session: String, slice: String): Boolean!
setSample(subscription: String!, session: String, groupId: String, id: String): Boolean!
setSidebarGroups(subscription: String!, session: String, dataset: String!, stages: BSONArray!, sidebarGroups: [SidebarGroupInput!]!): Boolean!
setSelected(subscription: String!, session: String, selected: [String!]!): Boolean!
setSelectedLabels(subscription: String!, session: String, selectedLabels: [SelectedLabel!]!): Boolean!
setView(subscription: String!, session: String, datasetName: String!, view: BSONArray = null, savedViewSlug: String = null, form: StateForm = null): BSONArray
createSavedView(subscription: String!, session: String, viewName: String!, viewStages: BSONArray = null, form: StateForm = null, datasetName: String = null, description: String = null, color: String = null): SavedView
deleteSavedView(subscription: String!, session: String, viewName: String!, datasetName: String): String
updateSavedView(viewName: String!, subscription: String, session: String, updatedInfo: SavedViewInfo!, datasetName: String = null): SavedView
setSample(
subscription: String!
session: String
groupId: String
id: String
): Boolean!
setSidebarGroups(
subscription: String!
session: String
dataset: String!
stages: BSONArray!
sidebarGroups: [SidebarGroupInput!]!
): Boolean!
setSelected(
subscription: String!
session: String
selected: [String!]!
): Boolean!
setSelectedLabels(
subscription: String!
session: String
selectedLabels: [SelectedLabel!]!
): Boolean!
setView(
subscription: String!
session: String
datasetName: String!
view: BSONArray = null
savedViewSlug: String = null
form: StateForm = null
): BSONArray
createSavedView(
subscription: String!
session: String
viewName: String!
viewStages: BSONArray = null
form: StateForm = null
datasetName: String = null
description: String = null
color: String = null
): SavedView
deleteSavedView(
subscription: String!
session: String
viewName: String!
datasetName: String
): String
updateSavedView(
viewName: String!
subscription: String
session: String
updatedInfo: SavedViewInfo!
datasetName: String = null
): SavedView
setSpaces(subscription: String!, session: String, spaces: BSON!): Boolean!
searchSelectFields(datasetName: String!, metaFilter: JSON): [String!]!
}
Expand All @@ -506,9 +589,23 @@ type PointCloudSample implements Sample {
}

type Query {
aggregate(datasetName: String!, view: BSONArray, aggregations: [Aggregate!]!, viewName: String = null, form: ExtendedViewForm = null): [AggregationResponses!]!
dataset(name: String!, savedViewSlug: String, view: BSONArray = null): Dataset!
datasets(search: String, first: Int = 200, after: String = null): DatasetStrConnection!
aggregate(
datasetName: String!
view: BSONArray
aggregations: [Aggregate!]!
viewName: String = null
form: ExtendedViewForm = null
): [AggregationResponses!]!
dataset(
name: String!
savedViewSlug: String
view: BSONArray = null
): Dataset!
datasets(
search: String
first: Int = 200
after: String = null
): DatasetStrConnection!
aggregations(form: AggregationForm!): [AggregateResult!]!
lightning(input: LightningInput!): [LightningResults!]!
colorscale: [[Int!]!]
Expand All @@ -517,13 +614,30 @@ type Query {
dev: Boolean!
doNotTrack: Boolean!
estimatedDatasetCount: Int!
samples(dataset: String!, view: BSONArray!, first: Int = 20, after: String = null, filter: SampleFilter = null, filters: BSON = null, extendedStages: BSON = null, paginationData: Boolean = true): SampleItemStrConnection!
sample(dataset: String!, view: BSONArray!, filter: SampleFilter!, filters: JSON = null): SampleItem
samples(
dataset: String!
view: BSONArray!
first: Int = 20
after: String = null
filter: SampleFilter = null
filters: BSON = null
extendedStages: BSON = null
paginationData: Boolean = true
): SampleItemStrConnection!
sample(
dataset: String!
view: BSONArray!
filter: SampleFilter!
filters: JSON = null
): SampleItem
stageDefinitions: [StageDefinition!]!
uid: String!
version: String!
savedViews(datasetName: String!): [SavedView!]
schemaForViewStages(datasetName: String!, viewStages: BSONArray!): SchemaResult!
schemaForViewStages(
datasetName: String!
viewStages: BSONArray!
): SchemaResult!
}

type RootAggregation implements Aggregation {
Expand Down

0 comments on commit 96f926a

Please sign in to comment.