/services/data/v26.0/query?q=select+a.Id,+(select+c.Id,+c.FirstName,+c.GUID__c,+c.LastName,+c.Middle_Name__c,+c.Phone,+c.Email,+c.Professional_Role__c,+c.HCP__c+from+Contacts+c)+from+Account+a +where+a.Contacts!=null
I am using this i am running into error of no field found named contacts.
How will i get only those accounts with corresponding contacts which have atleast one contact.
I want to eliminate all those accounts that has no contacts .Please note i want to do it in a single REST API call.