wellcomecollection / wellcomecollection.org

🪟 Wellcome Collection's website and services that support it
https://wellcomecollection.org
MIT License
39 stars 5 forks source link

Investigate use of graph query #7736

Closed gestchild closed 1 year ago

gestchild commented 2 years ago

Background: GraphQuery is a more advanced version of fetchLinks, that allows us to do things fetchLinks doesn't, i.e. fetching only required fields and fetching deep fields from linked documents.

However, it doesn't come with all the nice type checking stuff that fetchLinks does. So, if possible, we want to remove our use of graphQuery.

We need to investigate all uses of graph query, and make sure we’re only using it where needed.

rcantin-w commented 1 year ago

@gestchild Would this cover it? https://github.com/wellcomecollection/wellcomecollection.org/issues/10148