chore: query graph api (#9125)
CLOSES: FRMW-2704 **What** Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
This commit is contained in:
co-authored by
Adrien de Peretti
parent
3e97a64b21
commit
8829f89402
@@ -17,7 +17,7 @@ export function toRemoteJoinerQuery(
|
||||
|
||||
const canExpand =
|
||||
typeof value === "object" &&
|
||||
!["fields", "__args", "__directives"].includes(key)
|
||||
!["fields", "__fields", "__args", "__directives"].includes(key) // TODO: deprecate "fields"
|
||||
|
||||
if (!canExpand) {
|
||||
continue
|
||||
@@ -65,8 +65,8 @@ export function toRemoteJoinerQuery(
|
||||
)
|
||||
}
|
||||
|
||||
if (value.fields) {
|
||||
reference.fields = value.fields
|
||||
if (value.__fields || value.fields) {
|
||||
reference.fields = value.__fields ?? value.fields
|
||||
}
|
||||
|
||||
if (isEntryPoint) {
|
||||
|
||||
Reference in New Issue
Block a user