Take the first records from a query

Hi , guys!
I have a workflow which runs a custom query from Metabase (returns all records with a postal code equals to NULL) and it returns 200 records. How can I get the first 15 ?
Thank you!
Pavel

Hey @PavelEfremov!

You can use a Function node with the code snippet mentioned here: https://docs.n8n.io/reference/javascript-code-snippets.html#get-the-first-n-items-returned-by-the-last-node, to get the first 15 records.

1 Like