GraphQL Fetch history of a task
# support
k
Hi, I need to get the history of a task. I'm fetching the task via a Graphql query. Is there a field we can go through to get the change history on resources in Graphql?
b
I believe the answer is currently no. You likely have to use the Rest API for Resource history:
REST API: Using REST is our recommendation if your tasks involve complex searches or filters. Similarly, if you are performing queries that delve into resource history or necessitate targeted updates using PATCH, REST is the way to go. Lastly, REST is the de-facto standard when interacting with multiple FHIR systems. https://www.medplum.com/blog/2023/09/06/graphql-vs-rest
r
@bnapora is right! Right now there is not a specification on how to query history via GraphQL. We're working with the FHIR community to develop a spec, and you can lend your voice to the conversation here: https://chat.fhir.org/#narrow/stream/192326-graphql/topic/FHIR.20GraphQL.20state.20of.20the.20union/near/407639748
153 Views