appsmithorg / appsmithorg/appsmith

[Enhancement] For JSON responses in query pane, single object responses and array with single object responses look identical

未关闭
#2,731 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Enhancement Integrations Product Low Needs Design Query & JS Pod Query Forms Query Widgets & IDE Pod
主要语言
TypeScript
星标
40.9k
派生
4.8k
平均合并
1 天 22 小时
30 天内合并 PR
45

描述

## Description

For some datasources like MongoDB and Firestore, the result in the query editor view is shown in the form of JSON objects, instead of a table. However, the view renders an array of objects in the form of each object showing up in a single card-like view. As a result of this a single object response and an array response containing a single object look the same visually.

That is the following two responses look the same:

```json
{
"body": {
"one": "one-value",
"two": "two-value"
}
}
```

```json
{
"body": [
{
"one": "one-value",
"two": "two-value"
}
]
}
```

### Steps to reproduce the behaviour:

Run the Firestore method `Get Single Document` on a path that exists and points to a valid document. Examine the UI about how the single object response is rendered.

Run the Firestore method `Get Documents in Collection`, with limit set to 1, on a path that exists and points to a valid collection. Examine the UI about how the array with single object is rendered.

### Important Details
- Version: Cloud
- OS: macOS
- Browser: Firefox

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。