Skip to content
This repository was archived by the owner on Dec 22, 2020. It is now read-only.

Conversation

@houshuang
Copy link

I have not written Ruby for a while, but I needed this for a project, and it seems to work. This adds the possibility of selecting a specific value using an array selector [0]. This is especially useful for projects where there are arrays where you always just want the first value, rather than creating a Postgres array.

@houshuang
Copy link
Author

Note that currently this only works if the array selector is the final element. Ideally something like supervisor[0].id should also work.

@laurentrivard
Copy link

@houshuang Looking into converting our MongoDB data with postgres but we have arrays inside our documents. Would you PR help us import arrays into their own tables?

@houshuang
Copy link
Author

No, this only selects a specific value from an array, it does not import the whole array.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants