Connect relation in sql

I found a way by debugging the db for tables, there are auto generated tables for relations.

If you query those, you can basically look at the foreigns key and then you just insert a entry with the ids of collection A and collection B

I will show a more sophisticated example later, but that’s the gist bascially.

I think this should be mentioned in the doc in case people need to do faster db operations in bulk