Light
Dark
System
v3latest
v3latest
v2
v1

Update

Update objects with the e.update function.

Copy
e.update(e.Movie, movie => ({
  filter_single: {title: "Avengers 4"},
  set: {
    title: "Avengers: Endgame"
  }
}))

You can reference the current value of the object’s properties.

Copy
e.update(e.Movie, movie => ({
  filter: e.op(movie.title[0], '=', ' '),
  set: {
    title: e.str_trim(movie.title)
  }
}))

You can use a for loop to perform bulk updates.

Light
Dark
System

We use ChatGPT with additional context from our documentation to answer your questions. Not all answers will be accurate. Please join our Discord if you need more help.