Skip to content

Commit ddebc45

Browse files
aleksey-tkdoug-martin
authored andcommitted
Added missing import for default sorting example
1 parent c0f1a9a commit ddebc45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

documentation/docs/graphql/dtos.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,12 +595,13 @@ values={[
595595

596596
### Default Sort
597597

598-
When querying the default sort is based on the persistence layer. You can override the default by providing the `defaultSort` option.
598+
When querying the default is based on the persistence layer. You can override the default by providing the `defaultSort` option.
599599

600600
In this example we specify the default sort to be by `title`.
601601

602602
```ts title="todo-item.dto.ts" {5}
603603
import { FilterableField, IDField, QueryOptions, PagingStrategies } from '@nestjs-query/query-graphql';
604+
import { SortDirection } from '@nestjs-query/core';
604605
import { ObjectType, ID, GraphQLISODateTime, Field } from '@nestjs/graphql';
605606

606607
@ObjectType('TodoItem')

0 commit comments

Comments
 (0)