Add Query.todo(id) to GraphQL API
What does this MR do and why?
This adds the possibility to query a todo by its GlobalID. The GlobalID is available in the list but has no other use because you can't query a single todo by the GlobalID.
Screenshots or screen recordings
How to set up and validate locally
- Checkout branch
- Start GDK
- Sign in and make sure you have Todos
- Get a GlobalID of a Todo
query {
currentUser {
todos {
nodes {
id
}
}
}
}
- Query a single Todo by its ID
query {
todo(id: "<gid>") {
id
body
}
}
- Impersonate another user
- Execute the Query of Step 5 again and see, that the Todo is not returned
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.