Skip to content

Instantly share code, notes, and snippets.

@fevziomurtekin
Created August 18, 2020 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fevziomurtekin/15e5e503b5818e51579e74c00ea6525e to your computer and use it in GitHub Desktop.
Save fevziomurtekin/15e5e503b5818e51579e74c00ea6525e to your computer and use it in GitHub Desktop.
type Query {
version:String!
# Get all content
allContent:[Covid]
# Get content by date
allContentByDate(date:String): Covid
}
type Mutation{
createCovid(
date:String!,
test:String,
death:String,
recovered:String):Covid!
deleteCovid(id:String!):Boolean
}
type Covid{
_id:ID!,
date:String,
test:String,
death:String,
recovered:String,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment