mirror of
https://github.com/ent/ent.git
synced 2026-05-28 09:49:08 +03:00
doc/predicates: fix json example doc
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user