graphql-api icon indicating copy to clipboard operation
graphql-api copied to clipboard

How to get transaction type from GraphQL API ?

Open abhikt48 opened this issue 1 year ago • 0 comments

I can get transaction type from Java SDK but not able to get Transaction type from GraphQL. Can anyone please suggest, how can i get Transaction type with GraphQL API.

GraphQL Query (Throwing error with Type)

image

Java SDK works fine

TransactionSearchRequest request = new TransactionSearchRequest().orderId().is("123");
ResourceCollection<Transaction> collection = gateway.transaction().search(request);

Transaction transaction = collection.getFirst();
System.out.println("Transaction Type - " + transaction.getType());

abhikt48 avatar Sep 25 '24 12:09 abhikt48