GQL-130: Exposing associated citations from CMR on Collection and disable associatedCitations from graphdb for now #176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
What is the feature?
You can query for associatedCitations on a Collection and receive back a valid response. As is the case with Collection: C1200484122-MMT_2. It is associated with CIT1200485865-MMT_2 however you won't see that association in cmr anywhere as it only exists in graphdb.
In graphql, we need to expose the citations that are found in the associationDetails/cmr like we do for variables, services, and tools.
What is the Solution?
Added citations to collection.graphql and created the resolver
What areas of the application does this impact?
Collection.graphql
collection/resolver
Testing
Reproduction steps
Collection to associate to: C1200411035-ARCTEST
Citation to associate to above Collection: CIT1200485769-MMT_1
Attachments
Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.
Checklist