You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Throughout the GraphQL schema, fields populated by an Address have been
given the type Account, which enabled nested queries on that address. Take,
for example, a lookup table account.
You can see fields like ownerProgram and authority are queryable as Account types, allowing full account queries to be performed on these nested
fields.
We can enable the same types of nested queries for transaction on any fields that
are populated with Signature.
Details
This is actually quite trivial to implement, given the relationship of type definitions
and resolvers defined in this library. Here's an example.
However, there's a few important points about this approach.
There aren't many fields of type Signature.
Fields with lists of signatures will need to adhere to the same limitations as solana-labs/web3.js-issue-conveyer#16.
Not to mention the fact that with the Block example here, someone could just query
the transactions field on Block directly, however something like matching on a
specific transaction signature` could be useful here.
The text was updated successfully, but these errors were encountered:
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.
Motivation
Throughout the GraphQL schema, fields populated by an
Address
have beengiven the type
Account
, which enabled nested queries on that address. Take,for example, a lookup table account.
You can see fields like
ownerProgram
andauthority
are queryable asAccount
types, allowing fullaccount
queries to be performed on these nestedfields.
We can enable the same types of nested queries for
transaction
on any fields thatare populated with
Signature
.Details
This is actually quite trivial to implement, given the relationship of type definitions
and resolvers defined in this library. Here's an example.
If the
signatures
field was changed tosignatures: [Transaction]
, we couldenable this nesting on
Block
, for example.However, there's a few important points about this approach.
Signature
.Not to mention the fact that with the
Block
example here, someone could just querythe
transactions
field onBlock
directly, however something like matching on aspecific transaction signature` could be useful here.
The text was updated successfully, but these errors were encountered: