// GetBook handle get all books data
GetBook handle get all books data
// GetBook handle get all books data
func GetBook(p graphql.ResolveParams) (result interface{}, err error) {
	id := p.Args["id"].(int)
	if id > len(AllBooks) {
		err = errors.New("Book not found")
		return
	}
	result = AllBooks[(id - 1)]
	return
}
func GetBook ( p graphql . ResolveParams ) ( result interface { } , err error ) { id := p . Args [ " " ] . ( int ) if id > len ( AllBooks ) { err = errors . New ( " " ) return } result = AllBooks [ ( id - 1 ) ] return }
GetBook handle get all books data
GetBook handle get all books data