HDFGroup / hsds

Cloud-native, service based access to HDF data
https://www.hdfgroup.org/solutions/hdf-kita/
Apache License 2.0
131 stars 53 forks source link

GraphQL Support #128

Open jreadey opened 2 years ago

jreadey commented 2 years ago

Add a GraphQL endpoint to HSDS. Potentially this will enable clients to gather data from multiple objects in one request. Example: fetch attributes from two different datasets.

Please add a comment to this issue if this is something you'd be interested in.

bilalshaikh42 commented 2 years ago

This would be incredibly useful for us. Currently, we make multiple REST requests to HSDS gather different metdata/values for multiple datasets for each request to our API. Using graphql would allow us to combine that into one query, saving us some network overhead.

jreadey commented 1 year ago

Curious if anyone has any thoughts on how to handle large dataset selections in GraphQL? If we use a JSON representation that will require larger data transfers and some inefficiencies in parsing the JSON data. A base64 encoding would help somewhat.