feat(cloudapi-gql): primary_ip Machine resolver
This commit is contained in:
parent
8259bfd284
commit
e3dbb9086c
@ -106,6 +106,8 @@ const resolvers = {
|
||||
brand: ({ brand }) => (brand ? brand.toUpperCase() : brand),
|
||||
state: ({ state }) => (state ? state.toUpperCase() : state),
|
||||
image: ({ image }) => resolvers.Query.image(null, { id: image }),
|
||||
// eslint-disable-next-line camelcase
|
||||
primary_ip: ({ primaryIp }) => primaryIp,
|
||||
tags: ({ id }, { name }) =>
|
||||
resolvers.Query.tags(null, { machine: id, name }),
|
||||
metadata: ({ id }, { name }) =>
|
||||
|
Loading…
Reference in New Issue
Block a user