Examples
Get first 10 leads
{ viewer{ leads(first: 10){ edges{ node{ id fullName email lead } } } } }
Get contacts starting with B
{ viewer{ contacts(first: 10, q: "b%"){ edges{ node{ id fullName email } } } } }
Get deals ordered by date of creation
{ viewer{ pipelines(first:1){ edges{ node{ deals(orderBy:CREATED_AT, direction: DESC){ edges{ node{ id name currency } } } } } } } }
Create lead and return its id
Warning
Be carefull with mutations, this will actualy change your account data
mutation{ addContact(input:{ firstName:"John" lastName:"Doe" note:"Example client" lead: true }){ contact{ id } } }