syncano-node
syncano-node copied to clipboard
Handle nested arrays in fields method
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