Repository of the example using GraphQL, Relay, React, NodeJS, NextJS, Styled Components, Material UI and so on.
A great starting point for testing and playing with new features of the technologies mentioned above.
yarn
yarn startup
yarn server:dev
In your browser access localhost:5050/playground
query MultipleChoices {
multipleChoices{
totalCount
edges {
node {
id
...multipleChoiceFragment
}
}
}
}
query MultipleChoice($id: ID!) {
multipleChoice(id: $id) {
...multipleChoiceFragment
}
}
fragment multipleChoiceFragment on MultipleChoice {
id
question
statements
correctAnswer
}
mutation MultipleChoiceAdd($input: MultipleChoiceAddInput!) {
MultipleChoiceAdd(input: $input) {
error
multipleChoiceEdge {
node {
id
question
statements
correctAnswer
}
}
}
}
yarn seed
yarn test
or
yarn server:test
yarn next:dev
In your browser access localhost:6060