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)
- ๐ Bug: Adding attachment leads to error "Cannot set properties of null (setting 'Sortable1713167698240')". HOT 1
- ๐ฆ Feature: Allowing users signing up to be Organization Level Creators without administrator action
- ๐ฆ Feature: Database audit and log size should be limit or split.
- ๐ฆ Feature: "Recycle bin" or "Clean up" feature for base deleting
- [Feature] Set the number of items per page HOT 2
- ๐ Bug: Webhooks when used on a Docker container behind a proxy don't work
- Add restful/graphql api for the tables of datasource HOT 1
- ๐ Bug: Grid view field header context menu and field edit modal visible at same time
- ๐ Bug: Error when selecting linked field in form view HOT 1
- ๐ฆ Feature: Open file in attachment in the browser like we do for images HOT 1
- ๐ Bug: An โRecord N not foundโ exception throws when deleting in the grid view with groupby.
- ๐ Bug: Kanban drag drop issue HOT 3
- ๐ Bug: Checkbox required in forms not working HOT 2
- ๐ Bug: Group by shared view with password is broken
- ๐ Bug: Calendar view is broken in shared base UI
- ๐ Bug: ๅฝ่กจ็ๅ็งฐไธญๆ็นๆฎๅญ็ฌฆๆถไผๅบ้๏ผ
- ๐ Bug: Freezes after 0.205.0-20240419-1802
- ๐ฆ Feature: Line breaks in comments
- ๐ฆ Feature: dynamic line height for comment textarea
- ๐ Bug: No option to duplicate a table when in postgres datasource
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.