mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Revert the taggedCount and postCount
We need the order input types for our admin features. This is a potential DOS vulnerability: Ordering the tags by taggedCount might lead to very expensive cypher statements.
This commit is contained in:
parent
0e3ace36fb
commit
fe48c0f4f2
@ -11,6 +11,8 @@ enum _CategoryOrdering {
|
||||
createdAt_desc
|
||||
updatedAt_asc
|
||||
updatedAt_desc
|
||||
postCount_asc
|
||||
postCount_desc
|
||||
}
|
||||
|
||||
type Category {
|
||||
|
||||
@ -27,6 +27,10 @@ type Tag {
|
||||
enum _TagOrdering {
|
||||
id_asc
|
||||
id_desc
|
||||
taggedCount_asc
|
||||
taggedCount_desc
|
||||
taggedCountUnique_asc
|
||||
taggedCountUnique_desc
|
||||
}
|
||||
|
||||
type Query {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user