Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 988 Bytes

graphql-schemas.md

File metadata and controls

72 lines (57 loc) · 988 Bytes
Name: Login GraphQL
URL: http://localhost:8000/graphiql/login
Schema: 
mutation login {
  login(email: "[email protected]", password: "password") {
    id
    name
    email
    tasks {
      id
      user_id
      title
      is_completed
    }
    token
  }
}


Name: Register GraphQL
URL: http://localhost:8000/graphiql/register
Schema: 
mutation register {
  register(name:"Vikas", email:"[email protected]", password:"password" ){
    id, name, email, token
  }
}


--------------------- TESTING ---------------------

query getSkills {
  skills {
    skill_title
    id
  }
}



query myProfile {
  myprofile {
    id
    name
    email
  }
}

query getSkillsById {
  skills(id: 302) {
    skill_title
    id
  }
}

mutation updateSkill {
  updateSkill(id: 301, skill_title: "31 New Updated GraphQL Skil") {
    id
    skill_title
  }
}

mutation register{
    register(name: "jelenavuc" , email: "[email protected]", password: "12345678") {
        id, name, email
    }
}