Comments (3)
Having multiple keys with same name in an object wouldn't work.
Fixed Output will be in the lines of -
Expected Output:
[{
u_id: 1,
u_name : "xxx",
c_id: 1,
c_name : "city1"
},{
u_id : 2,
u_name : "yyy",
c_id: 2,
c_name : "city2"
}]
where alias for tables' getting joined - u and c will be appended with _ to each column name.
from nocodb.
@shivsharma396 Commit 5a9b6f4 has the fix and this will go in next release of npm.
Query:
/api/xjoin?_join=u.user,_lj,c.city&_on1=(u.city_id,eq,c.id)&_fields=u.id,u.name,c.id,c.name
Response:
[{
u_id: 1,
u_name : "xxx",
c_id: 1,
c_name : "city1"
},{
u_id : 2,
u_name : "yyy",
c_id: 2,
c_name : "city2"
}]
With this commit, _fields query param will be mandatory wherein earlier all fields of tables in join were getting selected.
from nocodb.
Solution in 0.4.4
from nocodb.
Related Issues (20)
- 🔦 Feature: support for socks 4/5 proxies when connecting to an RDBMS
- 🐛 Bug: no way to save "false" for boolean field HOT 2
- 🐛 Bug: Use TS or JS to introduce the incomplete data of the API data HOT 1
- 🐛 Bug: error when trying to open data source tab HOT 1
- 🔦 Feature: Rich text for comments
- 🔦 Feature: Date Time Picker
- Refactor nested switch statements in validateCondition function
- 🐛 Bug: ctrl + f not working anymore HOT 3
- 🐛 Bug: Send invitation causes "Cannot read properties of undefined (reading 'replace')"
- GeoData columns type missing HOT 2
- 🐛 Bug: no access to bulk update HOT 1
- 🐛 Bug: meta sync doesn't identify change in table name HOT 1
- 🐛 Bug: [mobile] Cell data not displayed in shared view HOT 3
- 🐛 Bug: Using a Different Postgres Schema Breaks Table Renaming
- 🐛 Bug: lookup columns is missing after source table copied HOT 4
- 🐛 Bug: Broken styles for mobile layout HOT 1
- 🐛 Bug: File preview images do not display. HOT 2
- 🐛 Bug: Cannot connect to Google Cloud Storage
- Feature : Is there a way to expose a Calendar view as a iCal file? HOT 1
- 🐛 Bug: avoid suffixing field names on duplicate table & base
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nocodb.