appsmithorg / appsmithorg/appsmith

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

Ouverte
#2,731 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Enhancement Integrations Product Low Needs Design Query & JS Pod Query Forms Query Widgets & IDE Pod
Langage dominant
TypeScript
Étoiles
40.9k
Forks
4.8k
Merge moyen
1 j 22 h
PR mergées (30 j)
45

Description

## 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.