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

feat(Pyclient): enable get method to retrieve data from GraphQL API #4525

Open
YpeZ opened this issue Nov 28, 2024 · 0 comments · May be fixed by #4558
Open

feat(Pyclient): enable get method to retrieve data from GraphQL API #4525

YpeZ opened this issue Nov 28, 2024 · 0 comments · May be fixed by #4558
Labels
emx2_python_client enhancement New feature or request

Comments

@YpeZ
Copy link
Contributor

YpeZ commented Nov 28, 2024

Issue

Currently the Pyclient implicitly converts CSV data from the get method to a pandas DataFrame (see #4502).
The reliance on the CSV API is problematic for columns with *_array types, as values in these columns are concatenated into a single string instead of separate values in a list.
In addition, with the CSV API it is not possible to expand values from reference and ontology tables.

Solution

The GraphQL API returns values in *_array type columns separately in lists and enables the expanding that is impossible with the CSV API.
In order to implement this the get method requires an additional parameter to specify how the data is requested.

Alternatives

No response

Additional context

The Client developed for EMX1 contained a get method that returned data in a dictionary form and included an expand parameter for its values.

@YpeZ YpeZ added enhancement New feature or request emx2_python_client labels Nov 28, 2024
@YpeZ YpeZ linked a pull request Dec 11, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emx2_python_client enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant