Failure to prepare statements should be a warning

This commit is contained in:
Vikram Rangnekar 2019-09-29 18:53:51 -04:00
parent 20ddfb26f3
commit d5dcff2810
2 changed files with 28 additions and 28 deletions

View File

@ -1,32 +1,5 @@
# http://localhost:8080/ # 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 { variables {
"update": { "update": {
"name": "Hellooooo", "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
}
}

View File

@ -30,7 +30,7 @@ func initPreparedList() {
for k, v := range _allowList.list { for k, v := range _allowList.list {
err := prepareStmt(k, v.gql, v.vars) err := prepareStmt(k, v.gql, v.vars)
if err != nil { if err != nil {
logger.Fatal().Err(err).Send() logger.Warn().Err(err).Send()
} }
} }
} }