diff --git a/config/allow.list b/config/allow.list index cd53643..7858bd4 100644 --- a/config/allow.list +++ b/config/allow.list @@ -1,32 +1,5 @@ # http://localhost:8080/ -variables { - "update": { - "name": "Hellooooo", - "description": "World", - "created_at": "now", - "updated_at": "now" - }, - "user": 123 -} - -mutation { - products(update: $update, where: {id: {eq: 134}}) { - id - name - description - } -} - -query { - me { - id - email - full_name - } -} - - variables { "update": { "name": "Hellooooo", @@ -67,3 +40,30 @@ query { } } + +variables { + "update": { + "name": "Hellooooo", + "description": "World", + "created_at": "now", + "updated_at": "now" + }, + "user": 123 +} + +mutation { + products(update: $update, where: {id: {eq: 134}}) { + id + name + description + } +} + +query { + me { + id + email + full_name + } +} + diff --git a/serv/prepare.go b/serv/prepare.go index 40b024c..bf9a475 100644 --- a/serv/prepare.go +++ b/serv/prepare.go @@ -30,7 +30,7 @@ func initPreparedList() { for k, v := range _allowList.list { err := prepareStmt(k, v.gql, v.vars) if err != nil { - logger.Fatal().Err(err).Send() + logger.Warn().Err(err).Send() } } }