Can you replace enum resourceType of GraphQL with something else? GraphQL variables supported in queries are only int float string bool: https://dgraph.io/docs/query-language/graphql-variables/
I am trying to make payloads look better. $resourceType should be string but not enum as follows:
// GraphQL POST PAYLOAD
const FString PostPayload =
R"(query speckleCommentsFetch($id: String!, $archived: bool!, $limit: int!, $resourceId: String!, $resourceType: String! )
{
comments(streamId:$id, archived: $archived, limit: $limit, resources:{resourcesId: $resourceId, resourceType: $resourceType){
items{
authorId
replies{items{authorId replies{items{id}}
reactions
archived
viewedAt
screenshot
text{type,doc}
createdAt
updatedAt
data resources{resourceId,resourceType}
}
}
}
)";