Run yarn start:dev
to test
Use yarn start
in production setting
query MyContests {
me(key: "0000") {
id
email
fullName
contestsCount
namesCount
votesCount
contests {
id
title
code
status
description
createdAt
names {
label
createdBy {
fullName
}
}
}
activities {
... on ContestType {
header: title
}
... on Name {
header: label
}
}
}
}
mutation AddNewContest($input: ContestInput!) {
AddContest(input: $input) {
id
code
status
description
}
}