Skip to content

Commit 0ee1ffc

Browse files
authored
Merge pull request #63 from Lomkit/GautierDele-patch-2
Update 2.search.md
2 parents 136efda + 1e081b0 commit 0ee1ffc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/2.endpoints/2.search.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ All fields specified here must be defined in the [fields method of your resource
316316
}
317317
```
318318

319+
#### Default sort
320+
321+
By default, Laravel Rest Api provides a default sort based on `id` descending. If you want to change this, please see the [configuration](/resources/exposed-data#default-sort)
322+
319323
### Selects
320324

321325
In some cases, you may want to specify the columns you want to select because it makes your API faster to not query unnecessary data.
@@ -547,4 +551,4 @@ When using full text search, some restrictions happens to the query:
547551
| `filters.type` | Not allowed |
548552
| `filters.nested` | Not allowed |
549553
| **Sorts** | |
550-
| `sorts.field` | take scout fields instead of fields in resource detail |
554+
| `sorts.field` | take scout fields instead of fields in resource detail |

0 commit comments

Comments
 (0)