-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Description
This is my query
query JobQuery {
objects {
getJob(objectId: "sqvJTrN9no") {
title
company {
name
}
countries
}
}
}
and it returns
{
"data": {
"objects": {
"getJob": {
"title": "Sales Assistant",
"company": {
"name": "Gulfstream Distribution"
},
"countries": [
{
"__type": "Pointer",
"className": "Country",
"objectId": "lZ15JnGq7h"
}
]
}
}
}
}
But I want to get country details inside this query results. Is there a way to do that?
I thought maybe something like this exists:
query JobQuery {
objects {
getJob(objectId: "sqvJTrN9no") {
title
company {
name
}
countries
}
findCountry(where: { objectId: { _in: ["lZ15JnGq7h"]} }) {
results {
name
}
}
}
}
Result:
{
"data": {
"objects": {
"getJob": {
"title": "Sales Assistant",
"company": {
"name": "Gulfstream Distribution"
},
"countries": [
{
"__type": "Pointer",
"className": "Country",
"objectId": "lZ15JnGq7h"
}
]
},
"findCountry": {
"results": [
{
"name": "Azerbaijan"
}
]
}
}
}
}
I don't know how to include results from getJob query into findCountry query. Any help would be appreciated 😊
JeffGuKang
Metadata
Metadata
Assignees
Labels
type:featureNew feature or improvement of existing featureNew feature or improvement of existing feature