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

Provide a way to retrieve select object IDs and metadata without loading full geometry data #4

Open
gouldingken opened this issue Feb 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gouldingken
Copy link
Member

gouldingken commented Feb 13, 2023

It seems like an advantage of GraphQL is that you grab only what you need, whereas the moment you 'hit' an object with the objectloader - it grabs all the data for that node and everything beneath. This seems to include all geometry data within that commit e.g. when using stream.Object(commit.referencedObject).data).

Can we provide a way to list all objects and their metadata in a commit without also grabbing their full geometry info. It seems like there should be a way to get that with GraphQL?

Perhaps the API could allow only specified fields to be queried - e.g. @Name and @Data and we may want to consider stitching the separated lists that are fed into Speckle Grasshopper Nodes back into a more web-friendly object format.

@gouldingken gouldingken added the enhancement New feature or request label Feb 13, 2023
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