Skip to content

Commit

Permalink
Issue #547: adds GraphQL query by parent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Aug 30, 2023
1 parent 0259c25 commit 177b998
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ public Uni<Connection<DocTypeField>> getDocTypeFields(
after, before, first, last, searchText, sortByList);
}

@Query
public Uni<Connection<DocTypeField>> getDocTypeFields(
@Description("fetching only nodes after this node (exclusive)") String after,
@Description("fetching only nodes before this node (exclusive)") String before,
@Description("fetching only the first certain number of nodes") Integer first,
@Description("fetching only the last certain number of nodes") Integer last,
long parentId, String searchText, Set<SortBy> sortByList) {
return docTypeFieldService.findConnection(
parentId, after, before, first, last, searchText, sortByList);
}

public Uni<DocTypeField> parent(
@Source DocTypeField docTypeField) {
return docTypeFieldService.getParent(docTypeField);
Expand Down

0 comments on commit 177b998

Please sign in to comment.