fix(modules-sdk): Select all should send undefined instead of an empty array (#6982)
This commit is contained in:
committed by
GitHub
parent
81ea044f31
commit
528ef4ca90
@@ -28,4 +28,20 @@ describe("Remote query", () => {
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
it("should properly handle fields and relations transformation for top level entity", () => {
|
||||
const expand = {
|
||||
fields: ["*"],
|
||||
}
|
||||
|
||||
const result = RemoteQuery.getAllFieldsAndRelations(expand)
|
||||
|
||||
expect(result).toEqual({
|
||||
select: undefined,
|
||||
relations: [],
|
||||
args: {
|
||||
"": undefined,
|
||||
},
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user