Last active
August 17, 2019 23:14
-
-
Save aleqsio/4383c71a61b79a03833c4fc5bf855d5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Project { | |
id: String! | |
name: String! | |
description: String! | |
createdAt: DateTime! | |
owner: User! | |
experiments: [Experiment!]! | |
isSharedReadOnly: Boolean! //NONE, READ, RW | |
isSharedReadWrite: Boolean! | |
} | |
type User { | |
id: String! | |
email: String! | |
name: String! | |
ownedProjects: [Project!]! | |
sharedProjects: [Project!]! | |
project(id: String!): Project! | |
} | |
type Variant { | |
id: String! | |
name: String! | |
description: String! | |
photoUrl: String! | |
results: [EventResult!]! | |
} | |
type Experiment { | |
id: String! | |
name: String! | |
description: String! | |
variants: [Variant!]! | |
questions: [Question!]! | |
events: [Event!]! | |
} | |
type Event { | |
id: String! | |
name: String! | |
results: [EventResult!]! | |
description: String! | |
} | |
type EventResult { | |
variant: Variant! | |
event: Event! | |
value: Float! | |
} | |
type QuestionResult { | |
variant: Variant! | |
question: Question! | |
score: Float! | |
} | |
enum QuestionType { | |
"RATING", | |
"YESNO" | |
} | |
type Question { | |
id: String! | |
name: String! | |
manual: Boolean! | |
results: [QuestionResult!]! | |
type: QuestionType! | |
} | |
type RootQuery { | |
me: User | |
project(id: String!): Project | |
} | |
mutation login(email: String!, password: String!){ | |
accessToken: String! | |
refreshToken: String! | |
} | |
mutation refresh(refreshToken: String!){ | |
accessToken: String! | |
refreshToken: String! | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment