[SOLVED] Update Pointer Object in a Table

Hi, could someone tell me the best way to update a column table’s pointer?

Example:

Table 1:
Collection -> Pointer Object (Collection 1)

to

Table 1:
Collection -> PointerObject (Collection 2)

Got it.

Make sure that the pointer object is at the bottom.

Before (not working)

      collectionFound && collectionItemQuery.set("collection", collectionFound);
      collectionItemQuery.set("objectId", item.id);
      collectionItemQuery.set("title", title);
      collectionItemQuery.set("description", description);

After:

      collectionItemQuery.set("objectId", item.id);
      collectionItemQuery.set("title", title);
      collectionItemQuery.set("description", description);
      collectionFound && collectionItemQuery.set("collection", collectionFound);
      collectionItemQuery.save().then(() => {});

Are you sure this was the only change that made it work?

1 Like

Yes, I tried to do many things before… I was like 3 hours stuck on it.

By the way, this was an update and not when I save for the first time the collection item.

@cryptokid do you have any personal contact that we can talk?
I have a good proposal and I would like to know if you are interested in it.