syncano-node icon indicating copy to clipboard operation
syncano-node copied to clipboard

Handle nested arrays in fields method

Open Idered opened this issue 7 years ago • 0 comments

This works:

data.posts
  .with('tags')
  .fields('title', 'tags.name')
  .list()

This doesn't work

data.meeting
  .with('documents', 'documents.tags')
  .fields('title', 'documents.name', 'documents.tags.name')
  .list()

documents.tags.name is not supported.

This also is not supported yet:

documents.created_at as documents.createdAt

Should be handled here: https://github.com/Syncano/syncano-node/blob/cf8ad30ec868c1acf3bc9de8a9ffebd03a626404/packages/lib-js-core/src/data.js#L269

Idered avatar Mar 08 '18 13:03 Idered