53f9f954c1
refs https://github.com/TryGhost/Arch/issues/41 - When an new collection is created the relational "tags" filter is now picked up properly and appropriate posts matching the tag filter are assigned and stored in the collection. Example collection filter that is now supported: `tags:['bacon']` - Additionally cleaned up returned collection post DTOs, so we return as little data as possible and add only the fields that are needed
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
export const posts = [{
|
|
id: 'post-1',
|
|
url: 'http://localhost:2368/post-1/',
|
|
title: 'Post 1',
|
|
slug: 'post-1',
|
|
featured: false,
|
|
created_at: new Date('2023-03-15T07:19:07.447Z'),
|
|
updated_at: new Date('2023-03-15T07:19:07.447Z'),
|
|
published_at: new Date('2023-03-15T07:19:07.447Z')
|
|
}, {
|
|
id: 'post-2',
|
|
url: 'http://localhost:2368/post-2/',
|
|
title: 'Post 2',
|
|
slug: 'post-2',
|
|
featured: false,
|
|
created_at: new Date('2023-04-05T07:20:07.447Z'),
|
|
updated_at: new Date('2023-04-05T07:20:07.447Z'),
|
|
published_at: new Date('2023-04-05T07:20:07.447Z')
|
|
}, {
|
|
id: 'post-3-featured',
|
|
url: 'http://localhost:2368/featured-post-3/',
|
|
title: 'Featured Post 3',
|
|
slug: 'featured-post-3',
|
|
featured: true,
|
|
created_at: new Date('2023-05-25T07:21:07.447Z'),
|
|
updated_at: new Date('2023-05-25T07:21:07.447Z'),
|
|
published_at: new Date('2023-05-25T07:21:07.447Z')
|
|
}, {
|
|
id: 'post-4-featured',
|
|
url: 'http://localhost:2368/featured-post-4/',
|
|
title: 'Featured Post 4',
|
|
slug: 'featured-post-4',
|
|
featured: true,
|
|
created_at: new Date('2023-05-15T07:21:07.447Z'),
|
|
updated_at: new Date('2023-05-15T07:21:07.447Z'),
|
|
published_at: new Date('2023-05-15T07:21:07.447Z')
|
|
}];
|