You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/2.endpoints/2.search.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Here is a quick look at what you can do:
58
58
"relation": "stars",
59
59
"type": "max",
60
60
"field": "rate",
61
-
"alias": "approved_max_rate",
61
+
"alias": "approved_max_stars",
62
62
"filters": [
63
63
{"field": "approved", "value": true}
64
64
]
@@ -105,7 +105,7 @@ Here is a quick look at what you can do:
105
105
|`aggregates.relation`|`string`| X || The relation you are querying |
106
106
|`aggregates.type`|`string`| X || The type of the aggregates you want to use in: `min`, `max`, `avg`, `sum`, `count` and `exists`|
107
107
|`aggregates.field`|`string`| when type is not `exists` or `count`|`*`| The field you want to execute your aggregate on |
108
-
|`aggregates.alias`|`string`||| The name to use for the aggregate column in the response|
108
+
|`aggregates.alias`|`string`||| The alias given for the aggregate |
109
109
|`aggregates.filters`|`array`||| You can specify all the arguments for the `filters` section |
110
110
|**Instructions**|||||
111
111
|`instructions.name`|`string`| X || The instruction `uriKey`|
@@ -420,7 +420,7 @@ For the `exists` and `count` operation you must not specify the field since thes
420
420
421
421
### Aliases
422
422
423
-
You may optionally define an alias for your aggregate using the alias method. This allows you to customize the name of the aggregate column in the response, instead of relying on Laravel's default naming.
423
+
You may optionally define an alias for your aggregate using the `alias` method. This allows you to customize the name of the aggregate column in the response, instead of relying on Laravel's default naming.
424
424
425
425
```json
426
426
// (POST) api/posts/search
@@ -431,7 +431,7 @@ You may optionally define an alias for your aggregate using the alias method. Th
0 commit comments