GraphQL Query
Last updated
Was this helpful?
Was this helpful?
return {{data}}.map(item => {
return {
id: item.id,
name: item.name.toUpperCase(),
};
});return {{data}}.map(item => {
return {
...item, // put all the keys from the original object
created_at: new Date(), // add a new property
};
});return {{data}}.filter(item => item.id > 10);return {{data}}.filter((item) => {
return item.id > 10;
});