Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update derivations.md with select JSON($flow_document) #1747

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions site/docs/concepts/derivations.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ into JSON arrays or objects and embeds them into the mapped document:
`{"greeting": "hello", "items": [1, "two", 3]}`.
If parsing fails, the raw string is used instead.

If you would like to select all columns of the input collection,
rather than `select *`, use `select JSON($flow_document)`, e.g.
`select JSON($flow_document where $status = open;`.

As a special case if your query selects a _single_ column
having a name that begins with `json` or `JSON`,
as is common when working with SQLite's [JSON functions](https://www.sqlite.org/json1.html),
Expand Down
Loading