New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(experimental): graphql: relay: Add support for id
field in transactions
#2565
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, so this is the right first step, but our GraphQL client doesn't actually know how to populate that field. You'll need to hook that into the resolver here.
solana-web3.js/packages/rpc-graphql/src/resolvers/transaction.ts
Lines 105 to 108 in 35aed3c
let result: TransactionResult = { | |
encodedData: {}, | |
signature, | |
}; |
id
field in transactions
should i be adding the ID inside the buildTransactionLoaderArgSetFromResolveInfo as well? solana-web3.js/packages/rpc-graphql/src/resolvers/resolve-info/transaction.ts Lines 79 to 88 in 35aed3c
|
Technically, that's not necessary for cache matching - since we're using another field for that - but to follow the expected Relay pattern I guess we should also include the ID. |
@buffalojoec I m trying to test locally the tests that are failing inside the pipeline, but i not getting same fails
is it just because of the node versions? Or am i missing something else when i run the tests?
i do run
which seems to be the one that fails |
I tend to get some flakiness from the main Try doing the following, and then running the tests only for the GraphQL library.
|
@tibi77 any luck with the commands I shared? |
id
field in transactionsid
field in transactions
id
field in transactionsid
field in transactions
Hey @tibi77 I appreciate the contribution here, but I'm taking the Relay effort to a new branch Keep an eye on the issues if you want to keep hacking. |
No description provided.