Is it possible to convert a basic stringified array into a defined array (probably wrong terminology)

Hey all,

I have a super basic array of ids that i’m converting into a string to send via a $post field to the backend.

This looks something like id1,id2,id3,id4…

What I’d like to convert this into somehow is an array that looks like this:

Screen Shot 2020-12-08 at 5.37.35 pm

{
  "query": {
    "ids": [
      {"values": "ids"}]
  }
}
Community Page
Last updated: