I have a transaction ID, however sometimes it takes a little bit of time for a monetary transaction to show up on Blockchains.
I'm using GraphQL to query the blockchain with this transaction ID. If it returns true, that means the transaction was successful, if not, unsuccessful.
Can anyone provide me with a template?
A "query" is just a field on what happens to be the Query type. A field can return any output type, including scalars -- it doesn't need to return an object. So it's sufficient to have a schema like:
type Query {
transaction(transactionId: String!): Boolean!
}