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 server:graphql
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
statementA
statementB
statementC
statementD
statementE
correctAnswer
}
mutation MultipleChoiceAdd($input: MultipleChoiceAddInput!) {
MultipleChoiceAdd(input: $input) {
error
multipleChoiceEdge {
node {
id
question
statementA
statementB
statementC
statementD
statementE
correctAnswer
}
}
}
}
yarn seed
yarn test
or
yarn server:test
yarn next:dev
In your browser access localhost:6060