From f79e8cd2617357198283db939f7410fa316482c6 Mon Sep 17 00:00:00 2001 From: Pacien Boisson Date: Mon, 13 Jul 2020 11:57:53 +0200 Subject: [PATCH] added getBoxProfile action --- hasura/metadata/actions.graphql | 16 ++++++++++++++++ hasura/metadata/actions.yaml | 24 ++++++++++++++++-------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/hasura/metadata/actions.graphql b/hasura/metadata/actions.graphql index 0b1d26e7..19eb7859 100644 --- a/hasura/metadata/actions.graphql +++ b/hasura/metadata/actions.graphql @@ -1,3 +1,10 @@ +type Query { + getBoxProfile ( + address: String + ): BoxProfile +} + + type Mutation { updateBoxProfile : UpdateBoxProfileResponse } @@ -10,3 +17,12 @@ type UpdateBoxProfileResponse { updatedProfiles : [String!]! } +type BoxProfile { + name : String + description : String + location : String + job : String + emoji : String + imageUrl : String +} + diff --git a/hasura/metadata/actions.yaml b/hasura/metadata/actions.yaml index 51478dd6..7204a88b 100644 --- a/hasura/metadata/actions.yaml +++ b/hasura/metadata/actions.yaml @@ -1,14 +1,22 @@ actions: - - name: updateBoxProfile - definition: - kind: synchronous - handler: '{{ACTION_BASE_ENDPOINT}}/updateBoxProfile' - forward_client_headers: true - permissions: - - role: player +- name: getBoxProfile + definition: + kind: "" + handler: '{{ACTION_BASE_ENDPOINT}}/getBoxProfile' + permissions: + - role: player + - role: public +- name: updateBoxProfile + definition: + kind: synchronous + handler: '{{ACTION_BASE_ENDPOINT}}/updateBoxProfile' + forward_client_headers: true + permissions: + - role: player custom_types: enums: [] input_objects: [] objects: - - name: UpdateBoxProfileResponse + - name: UpdateBoxProfileResponse + - name: BoxProfile scalars: []