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

Expose standalone JSON path builder @ ExpressionBuilder. #790

Closed
igalklebanov opened this issue Dec 1, 2023 · 0 comments · Fixed by #791
Closed

Expose standalone JSON path builder @ ExpressionBuilder. #790

igalklebanov opened this issue Dec 1, 2023 · 0 comments · Fixed by #791
Labels
api Related to library's API enhancement New feature or request

Comments

@igalklebanov
Copy link
Member

Hey 👋

As mentioned in #440, we can expose support for building JSON paths without a reference arrow (just the '$.key' string). Most of the implementation is already in place.

Why is this important? Well, since we won't support all JSON functions out there, and some of them expect JSON paths as arguments, currently consumers can only provide a non type-safe literal.

Possible API:

jsonPath<RE extends ReferenceExpression<DB, TB>>(ref: RE): JSONPathBuilder<ExtractTypeFromReferenceExpression<DB, TB, RE>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant