Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправление сохранения вложенной структуры более 2 уровней #3

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

bekhtersa
Copy link
Contributor

Пример структуры:

args= { cpn: [ {
  field: 123,
  adr: [ {
    field_adr: 456,
    tm: [ {
      field_tm: 78,
    },
    {
      field_tm: 90
    } ]
  } ]
} ] }
action: {
  aSave: {
      "@main": {
          type: 'query',
          action: `...`,
          out: "..."
      },
      cpn: {
          "@each": {
              type: "broker",
              action: "tst.cpn.mod",
              args: { "...": "/cpn" },
              out: "id"
          },
          adr: {
              "@add;upd": {
                  type: "broker",
                  action: "tst.cpn_adr.mod",
                  args: { '...': '*', pid: '/cpn.id'},
                  out: "id"
              },
              tm: {
                  "@add;upd": {
                      type: "broker",
                      action: "tst.cpn_adr_tm.mod",
                      args: { '...': '*', pid: '/cpn.adr.id' },
                      out: "..."
                  }
              }
          }
      }
  }
}

Раньше tm массив не отрабатывал и не сохранялся

@untrueme untrueme merged commit 97d39ec into nf-framework:main Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants