You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Resource Instance level the query assumes a single resource is in scope, and just queries on the data available in the given resource.
Implementation notes:
This will mostly be in packages\fhir-router\src\graphql\graphql.ts
We currently only maintain one root schema:
letrootSchema: GraphQLSchema|undefined;
Which is lazily built on the first graphql operation.
We will need to create additional schemas for each FHIR resource type. That should not be as bad as it sounds. We already build a GraphQLOutputType for each resource type. So creating the schema should be something like:
I don't know if it would be easier to reuse the existing graphqlHandler or to create a new similar one for instance level. That will require some quick experimentation.
The text was updated successfully, but these errors were encountered:
https://hl7.org/fhir/graphql.html#invoking
A Resource Instance level the query assumes a single resource is in scope, and just queries on the data available in the given resource.
Implementation notes:
This will mostly be in
packages\fhir-router\src\graphql\graphql.ts
We currently only maintain one root schema:
Which is lazily built on the first graphql operation.
We will need to create additional schemas for each FHIR resource type. That should not be as bad as it sounds. We already build a
GraphQLOutputType
for each resource type. So creating the schema should be something like:(untested)
And then add a route in
packages\fhir-router\src\fhirrouter.ts
Similar to the existing GraphQL route:
Except this will be an instance level route:
I don't know if it would be easier to reuse the existing
graphqlHandler
or to create a new similar one for instance level. That will require some quick experimentation.The text was updated successfully, but these errors were encountered: