Merge pull request 'Added another function to get all user favorites with pagination' (#3) from more-querys into main
Reviewed-on: #3
This commit is contained in:
commit
2c43149c9e
@ -333,6 +333,7 @@ func GetUserFavoriteNodeWithPagination(ctx context.Context, driver neo4j.DriverW
|
|||||||
MATCH (a:AnthrovePost)<-[r:REFERENCE]-(s:Source)
|
MATCH (a:AnthrovePost)<-[r:REFERENCE]-(s:Source)
|
||||||
WHERE a.post_id in faves
|
WHERE a.post_id in faves
|
||||||
RETURN a AS anthrovePost, r AS postRelation, s AS Source
|
RETURN a AS anthrovePost, r AS postRelation, s AS Source
|
||||||
|
ORDER BY id(a) ASC
|
||||||
`
|
`
|
||||||
params := map[string]any{
|
params := map[string]any{
|
||||||
"anthrove_user_id": anthroveUserID,
|
"anthrove_user_id": anthroveUserID,
|
||||||
|
Reference in New Issue
Block a user