Skip to content

How to get transaction type from GraphQL API ? #48

@abhikt48

Description

@abhikt48

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions