Compare commits

...

1 Commits

Author SHA1 Message Date
Jarrod Flesch
2b9a2a4a0c chore: adds failing int test 2025-02-25 15:47:29 -05:00

View File

@@ -1205,6 +1205,22 @@ describe('Joins Field', () => {
expect(parent.children.docs[1]?.value.id).toBe(child_1.id)
expect(parent.children.docs[1]?.relationTo).toBe('multiple-collections-1')
// Pagination across collections
parent = await payload.findByID({
collection: 'multiple-collections-parents',
id: parent.id,
depth: 1,
joins: {
children: {
limit: 1,
sort: 'title',
},
},
})
expect(parent.children.docs).toHaveLength(1)
expect(parent.children?.hasNextPage).toBe(true)
// Sorting across collections
parent = await payload.findByID({
collection: 'multiple-collections-parents',