How can I get data related using api version 2?

How can I get data related using api version 2?

I need to obtain the related data of an account to get their contacts, 
I am using the node js sdk but there is no documentation of that part, 
I am using version 2 of the api.