If I have a list of products stored in my database, it might look something like this
items: [
{
id: '001',
name: 'Product 01',
description: 'Awesome product'
price: 50.00
},
{
id: '002',
name: 'Product 02',
description: 'Awesome product'
price: 50.00
},
{
id: '003',
title: 'Product 03',
description: 'Awesome product'
price: 50.00
},
{
id: '004',
name: 'Product 04',
description: 'Awesome product'
price: 50.00
},
{
id: '005',
name: 'Product 05',
description: 'Awesome product'
price: 50.00
}
]
If I want GraphQL to only show me products 1, 3, and 4 by passing an array containing ['001', '003', '004']
, which function should I implement on my schema to achieve this?