@ObjectType or the class name.
The following examples are based on the following TodoItemDTO
todo-item.dto.ts
todoItem- graphql endpoint to find a record by id.todoItems- graphql endpoint to filter, page, and sort records,
Find By Id
The following example finds aTodoItem by id.
- GraphQL
- Response
Querying
As described above theCRUDResolver will expose a query method called todoItems. The result will be either
a connection or array depending on the paging strategy you choose
All examples below assume that a connection is returned but filtering and sorting work the same way for all paging strategies.
To read how to page collections read the paging docs
- GraphQL
- Response