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

Contains and Contained operators #24

Open
elrhomariyounes opened this issue Dec 10, 2020 · 0 comments
Open

Contains and Contained operators #24

elrhomariyounes opened this issue Dec 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@elrhomariyounes
Copy link
Contributor

elrhomariyounes commented Dec 10, 2020

Feature request

Is your feature request related to a problem? Please describe.

Hello, the contains (@>) and contained (<@) operators only supports for now Range types. In the docs they can be used also with Array types, Geometric types and Json

ARRAY[1,4,3] @> ARRAY[3,1,3]
ARRAY[2,2,7] <@ ARRAY[1,7,4,2,6]
circle '<(0,0),2>' @> point '(1,1)'
point '(1,1)' <@ circle '<(0,0),2>'
'{"a":1, "b":2}'::jsonb @> '{"b":2}'::jsonb
'{"b":2}'::jsonb <@ '{"a":1, "b":2}'::jsonb

I think when using List the Postgrest the request failed, doesn't recognize the operator as @acupofjose mentioned in #15

Describe the solution you'd like

If you can support those types specially arrays. Thank you very much.

@elrhomariyounes elrhomariyounes added the enhancement New feature or request label Dec 10, 2020
@elrhomariyounes elrhomariyounes changed the title Contains and Contained operatos Contains and Contained operators Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant