Loading...
Loading...
Queries are the primary way of fetching data associated with a Profile, such as Connections, Accounts, Transactions and more.
A powerful feature of queries is that they natively support requesting complex, nested data structures. This allows you to:
Currently the following Queries are generally available via GraphQL:
profile
: Access information about the authenticated Profile.connection
: Look up a Connection by its ID.connections
: Get a list of Connections with filters, search and sort options.account
: Look up an Account by its ID.accounts
: Get a list of Accounts with filters, search and sort options.transaction
: Look up a Transaction by its ID.transactions
: Get a paginated list of Transactions, with filters, search and sort options.holding
: Look up a Holding by its ID.holdings
: Get a paginated list of Holdings.statement
: Look up a Statement by its ID.statements
: Get a paginated list of Account Statements, with filters, search and sort options.profile
QueryIn this example, we will define a profile
query to get the user's basic profile details:
In GraphQL, successful queries always return a data
object that mirrors the structure of your request.
The Quiltt React SDK provides a built-in hook to call the Quiltt GraphQL API. Additionally, the GraphQL community provides a rich ecosystem of open-source clients and libraries that seamlessly plug-in to your client-side or server-side framework of choice.
For example, here's the profile
query example implemented using our useQuery
hook.