mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix searches
This commit is contained in:
parent
44700f8a41
commit
33b18a5431
@ -12,7 +12,7 @@ const cypherTemplate = (setup) => `
|
||||
RETURN
|
||||
${setup.returnClause}
|
||||
AS result
|
||||
SKIP $skip
|
||||
SKIP toInteger($skip)
|
||||
${setup.limit}
|
||||
`
|
||||
|
||||
@ -45,7 +45,7 @@ const searchPostsSetup = {
|
||||
clickedCount: toString(resource.clickedCount),
|
||||
viewedTeaserCount: toString(resource.viewedTeaserCount)
|
||||
}`,
|
||||
limit: 'LIMIT $limit',
|
||||
limit: 'LIMIT toInteger($limit)',
|
||||
}
|
||||
|
||||
const searchUsersSetup = {
|
||||
@ -54,7 +54,7 @@ const searchUsersSetup = {
|
||||
whereClause: simpleWhereClause,
|
||||
withClause: '',
|
||||
returnClause: 'resource {.*, __typename: labels(resource)[0]}',
|
||||
limit: 'LIMIT $limit',
|
||||
limit: 'LIMIT toInteger($limit)',
|
||||
}
|
||||
|
||||
const searchHashtagsSetup = {
|
||||
@ -63,7 +63,7 @@ const searchHashtagsSetup = {
|
||||
whereClause: simpleWhereClause,
|
||||
withClause: '',
|
||||
returnClause: 'resource {.*, __typename: labels(resource)[0]}',
|
||||
limit: 'LIMIT $limit',
|
||||
limit: 'LIMIT toInteger($limit)',
|
||||
}
|
||||
|
||||
const searchGroupsSetup = {
|
||||
@ -78,7 +78,7 @@ const searchGroupsSetup = {
|
||||
OR membership.role IN ['usual', 'admin', 'owner'])`,
|
||||
withClause: 'WITH resource, membership',
|
||||
returnClause: 'resource { .*, myRole: membership.role, __typename: labels(resource)[0] }',
|
||||
limit: 'LIMIT $limit',
|
||||
limit: 'LIMIT toInteger($limit)',
|
||||
}
|
||||
|
||||
const countSetup = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user