How do we retrieve a filtered list of items from an array of IDs in GraphQL?

Lets say I have an array of products in my database that looks like this

products:[
    {
        id: 001,
        title: Product 01,
        description: 'Some cool product'
        price: 50.00
    },
    {
        id: 002,
        title: Product 02,
        description: 'Some cool product'
        price: 50.00
    },
    {
        id: 003,
        title: Product 03,
        description: 'Some cool product'
        price: 50.00
    },
    {
        id: 004,
        title: Product 04,
        description: 'Some cool product'
        price: 50.00
    },
    {
        id: 005,
        title: Product 05,
        description: 'Some cool product'
        price: 50.00
    }
]

Now lets say I wanted GraphQL to only return products 1, 3 and 4 and I wanted to pass an array of [001, 003, 004] into the query so GraphQL can filter the items with those ids and return those 3 products. What type of function would I need to implement on my schema to achieve this?