Change: Adds latestDeployment for Environment#4073
Conversation
|
This PR adds a new field that can be used like: query {
environmentByName(project: 1, name: "main") {
latestDeployment {
name
}
}
}But this is functionally equivalent to the existing query that can be used: query {
environmentByName(project: 1, name: "main") {
deployments(limit: 1) {
name
}
}
}They both return the same data, and they even both run the same sql query, so I don't see the benefit of extended the API in this way. If |
Perfect! Didn't realize using |
General Checklist
Adds minimal field resolver
latestDeploymenttoEnvironment.Required for uselagoon/lagoon-beta-ui#148