From e3dbb9086ce4c6a1260c253587f45bceb52c68e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Wed, 4 Oct 2017 18:26:38 +0100 Subject: [PATCH] feat(cloudapi-gql): primary_ip Machine resolver --- packages/cloudapi-gql/src/schema/resolvers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cloudapi-gql/src/schema/resolvers.js b/packages/cloudapi-gql/src/schema/resolvers.js index d78e9427..1dfaf9ab 100644 --- a/packages/cloudapi-gql/src/schema/resolvers.js +++ b/packages/cloudapi-gql/src/schema/resolvers.js @@ -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 }) =>