It depends less on the breed of dog and more on its temperament as well as on the behavior of the owners.
Please do not rush into any decisions. That's how dogs end up in shelters.
That being said, I grew up with a purebred German Shepherd. We had him from the time I was a year old and he and I adored each other. I crawled all over him, chewed on his ears, tugged on his fur and poked him incessantly. He allowed me to do so without barking, growling or nipping at me. He followed me everywhere I went and was extremely protective of me.
Was it the breed? Or the individual dog?
Unfortunately, there's no way to tell.
Please do your research. And remember, no matter what breed of dog you decide upon; never leave small children alone with ANY dog.