Skip to content

DeepClient

FreePhoenix888 edited this page Apr 7, 2023 · 7 revisions

FAQ

How to do insert+update+delete in one network request?

await deep.serial({
  operations: [
    createSerialOperation({
      table: 'links',
      type: 'insert',
      objects: [
        {
          type_id: typeTypeLinkId,
        },
      ],
    }),
    createSerialOperation({
      table: 'strings',
      type: 'update',
      exp: {
        id: linkId,
      },
      value: {
        value: 'newStringValue',
      },
    }),
    createSerialOperation({
      table: 'links',
      type: 'delete',
      exp: {
        id: linkId,
      },
    }),
  ],
});

How to use idLocal?

By using idLocal you are able to get links-types from core package and links-types saved to your minilinks storage. To get a link-type from minilinks you have to save a package that contains the type-link, the contain link which points from the package link to your type-link, the type-link

Clone this wiki locally