Repository navigation
docs: add JsonContains find-options example - #11945
Conversation
User descriptionAdds a Fixes #11940. PR TypeDocumentation Description
Diagram Walkthroughflowchart LR
A["Find Options Documentation"] -- "adds JsonContains example" --> B["JsonContains Usage Example"]
B -- "shows TypeScript code" --> C["Code Example"]
B -- "shows SQL query" --> D["Postgres Query"]
|
| Relevant files | |||
|---|---|---|---|
| Documentation |
|
PR Code Suggestions ✨
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewⓘ The new review experience is currently in Beta. Learn more Previous review resultsReview updated until commit 6d4f931 Results up to commit 7fb5074
1. Missing database compatibility warning for JsonContains
|
Signed-off-by: Luca Raveri <[email protected]>
PR Code Suggestions ✨
|
|
Persistent review updated to latest commit 6d4f931 |
|
Not 100% sure we should add the “(PostgreSQL/CockroachDB only)” note here, since other operators like arrayContains / arrayContainedBy don’t have a similar disclaimer in the docs. Also, in the codebase there isn’t any dialect check: TypeORM will generate the SQL as-is, and it will simply fail at runtime if the underlying driver doesn’t support @> / <@ (or ::jsonb). For consistency, maybe we should either:
WDYT? @gioboa |
gioboa
left a comment
There was a problem hiding this comment.
ok, I see. Let's keep the note for this one and we can create another PR to fill the missing gap.
Thanks for your help 👏
Signed-off-by: Luca Raveri <[email protected]>
Adds a
JsonContainsexample to the Find Options docs.Fixes #11940.