Skip to content

igordev2/go-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Execute playground

go run server.go

Example

igor@Igor:~$ go run server.go
2022/01/09 13:47:00 connect to http://localhost:8080/ for GraphQL playground

mutations and queries in playground

query findCategory {
  categories {
    id
    name
    description
    courses {
      name
    }
  }
}

query findCourses {
  courses {
    id
    name
    description
    chapters {
      name
    }
    category {
      name
    }
  }
}

mutation createCategory {
  createCategory(input: { name: "GO", description: "GO is awsome" }) {
    id
    name
    description
  }
}

mutation createCourse {
  createCourse(
    input: {
      name: "Evolving with GO"
      description: "Mega GO is awsome"
      categoryId: "T5577006791947779410"
    }
  ) {
    id
    name
    description
    category {
      id
      name
    }
  }
}

mutation createChapter {
  createChapter(
    input: {
      name: "Evolving PHP - Chapter 1"
      courseId: "T8674665223082153551"
    }
  ) {
    id
    name
    course {
      name
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages