-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
GraphQL could potentially make a lot of RemoteRecord integrations extremely strong. When working on something internally, I ended up with a query like this:
query {
nodes(ids: ["sfgsagas", "MDExOlB1bGxSZXF1ZXN0NTcxMDU3NTky"]) {
...on PullRequest {
title
}
}
}{
"data": {
"nodes": [
null,
[
[
"title",
"Add dot params transformer"
]
]
]
},
"errors": [
{
"type": "NOT_FOUND",
"path": [
"nodes",
0
],
"locations": [
{
"line": 7,
"column": 3
}
],
"message": "Could not resolve to a node with the global id of 'sfgsagas'"
}
]
}This suggests a few things:
- It could be possible to grab a variety of objects by ID, and pluck attributes
- At least with GitHub's GraphQL API, we can handle failed lookups by
compacting thenodesarray.
Metadata
Metadata
Assignees
Labels
No labels