Skip to content

Rocketseat Experts Club video building an simple API with GraphQL, NodeJS, TypeScript, Apollo Server and TypeGraphQL

Notifications You must be signed in to change notification settings

tutods/dowhile-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API with GraphQL, NodeJS and TypeScript


This repo are creating following the Rocketseat Experts Club video (collection of DoWhile 2020).


🗒 Changes

  • Implementing the relation on get list of videos.

⭐️ Examples of Queries & Mutations

1. Get Categories

query Categories {
  categories {
    _id,
    name
  }
}

2. Create Category

mutation {
  createCategory(categoryInput: {
    name: "Name of my category",
    description: "Category description"
  }) {
    name,
    _id
  }
}

3. Get Videos

query Videos {
  videos {
    name,
    category {
      name
    }
  }
}

4. Create Video

mutation {
  createVideo(videoInput: {
    name: "Name of my video",
    description: "Description of my video",
    category: "<id of category>"
  }) {
    _id,
    name
  }
}



About

Rocketseat Experts Club video building an simple API with GraphQL, NodeJS, TypeScript, Apollo Server and TypeGraphQL

Topics

Resources

Stars

Watchers

Forks