Skip to content

Commit 8fe628d

Browse files
committed
Added sortPriority to docs
1 parent 14b48ce commit 8fe628d

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ Each field has their own set of filters. Based on the field type, some or all o
271271
* startwith - A like query with a wildcard on the right side of the value.
272272
* endswith - A like query with a wildcard on the left side of the value.
273273
* contains - A like query.
274+
* sort & sortPriority - Sort the results by a field. Use sortPriority to sort by multiple fields.
274275

275276
You may [exclude any filter](https://doctrine-orm-graphql.apiskeletons.dev/en/latest/attributes.html#entity) from any entity, association, or globally.
276277

docs/queries.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,21 @@ specific to the entity they filter upon.
5656

5757
Provided Filters::
5858

59-
eq - Equals; same as name: value. DateTime not supported. See Between.
60-
neq - Not Equals
61-
gt - Greater Than
62-
lt - Less Than
63-
gte - Greater Than or Equal To
64-
lte - Less Than or Equal To
65-
in - Filter for values in an array
66-
notin - Filter for values not in an array
67-
between - Filter between `from` and `to` values. Good substitute for DateTime Equals.
68-
contains - Strings only. Similar to a Like query as `like '%value%'`
69-
startswith - Strings only. A like query from the beginning of the value `like 'value%'`
70-
endswith - Strings only. A like query from the end of the value `like '%value'`
71-
isnull - If `true` return results where the field is null.
72-
sort - Sort the result by this field. Value is 'asc' or 'desc'
59+
eq - Equals; same as name: value. DateTime not supported. See Between.
60+
neq - Not Equals
61+
gt - Greater Than
62+
lt - Less Than
63+
gte - Greater Than or Equal To
64+
lte - Less Than or Equal To
65+
in - Filter for values in an array
66+
notin - Filter for values not in an array
67+
between - Filter between `from` and `to` values. Good substitute for DateTime Equals.
68+
contains - Strings only. Similar to a Like query as `like '%value%'`
69+
startswith - Strings only. A like query from the beginning of the value `like 'value%'`
70+
endswith - Strings only. A like query from the end of the value `like '%value'`
71+
isnull - If `true` return results where the field is null.
72+
sort - Sort the result by this field. Value is 'asc' or 'desc'
73+
sortPriority - Sort priority when multiple sort fields are used. Value is an integer starting at 1.
7374

7475
The format for using these filters is:
7576

@@ -153,7 +154,7 @@ A complete query for all pagination data:
153154
}
154155
155156
Cursors are included with each edge. A cursor is a base64 encoded
156-
offset from the beginning of the result set. ``base64_encode('0');`` is
157+
offset from the beginning of the result set. ``base64_encode('0');`` is
157158
``MA==`` to use when creating a paginated query.
158159

159160

0 commit comments

Comments
 (0)