Skip to content

Commit

Permalink
Merge pull request #1155 from NASA-AMMOS/fix/GQLMerlin-queries-table
Browse files Browse the repository at this point in the history
Make GQLMerlinService query table instead of deprecated action
  • Loading branch information
Mythicaeda authored Sep 28, 2023
2 parents bdf15b5 + ed10782 commit baf34d4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public Collection<ResourceType> getResourceTypes(final MissionModelId missionMod
{
final var request = """
query GetResourceTypes {
resourceTypes(missionModelId: "%d") {
resource_type(where: {model_id: {_eq: %d}}) {
name
schema
}
Expand All @@ -726,7 +726,7 @@ public Collection<ResourceType> getResourceTypes(final MissionModelId missionMod
final JsonObject response;
response = postRequest(request).get();
final var data = response.getJsonObject("data");
final var resourceTypesJsonArray = data.getJsonArray("resourceTypes");
final var resourceTypesJsonArray = data.getJsonArray("resource_type");

final var resourceTypes = new ArrayList<ResourceType>();

Expand All @@ -746,7 +746,6 @@ public Collection<ResourceType> getResourceTypes(final MissionModelId missionMod
* @param planId the plan id
* @return
* @throws IOException
* @throws MissionModelServiceException
* @throws MerlinServiceException
* @throws NoSuchPlanException
*/
Expand Down

0 comments on commit baf34d4

Please sign in to comment.