Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlegetPeopleContainerWithQuery - since 0.8.0
collapsetrue
    ObjectDataSenderBuilder query = new ObjectDataSenderBuilder(Person.PEOPLE_QUERY_OBJECT_NAME, true);
    query.addAttribute(BasicPaginationEnum.FIRST.getLabel(), 10);
    query.addField(PersonFields.DISPLAY_NAME);

	MembersContainer peopleResult = client.getPeopleContainerWithQuery(new PeopleGraphQLQuery(query));
    PageInfo pageInfo = peopleResult.getPageInfo();
    List<Person> people = peopleResult.getItems();