Skip to content

Commit

Permalink
refactor: improvements on GraphQL type defs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdaniiel07 committed Jul 30, 2022
1 parent 07c0dcd commit 76013a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/graphql/type-defs/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { gql } from 'apollo-server-express'

export default gql`
extend type Query {
loadSurveys: [Survey]
loadSurveys: [Survey!]!
loadSurveyResults (surveyId: String!): SurveyResult
}
type Survey {
id: ID!
question: String!
answers: [SurveyAnswer]
answers: [SurveyAnswer!]!
date: String!
}
Expand All @@ -21,7 +21,7 @@ export default gql`
type SurveyResult {
surveyId: ID!
question: String!
answers: [SurveyResultAnswer]
answers: [SurveyResultAnswer!]!
date: String!
}
Expand Down

0 comments on commit 76013a9

Please sign in to comment.