doc/predicates: fix json example doc

This commit is contained in:
Ariel Mashraki
2021-11-11 20:26:01 +02:00
committed by GitHub
parent 7456e95235
commit 12feb4301d

View File

@@ -223,7 +223,7 @@ sqljson.ValueNEQ(user.FieldData, content, sqljson.DotPath("attributes[1].body.co
sqljson.ValueGTE(user.FieldData, status.StatusBadRequest, sqljson.Path("response", "status"))
```
#### Check for JSON key presence
#### Check for the presence of a JSON key
```go
sqljson.HasKey(user.FieldData, sqljson.Path("attributes", "[1]", "body"))