Irys-xyz / arweave-js-sdk

JS SDK for Irys on Arweave
111 stars 96 forks source link

Searching by tag doesn't work in Arweave GraphQL #62

Closed mncdg closed 2 years ago

mncdg commented 2 years ago

Example of creating transaction

const transaction = await bundlr.createTransaction(JSON.stringify({
    id: 'test',
  }, {
    tags: [
      { name: 'App-Name', value: 'TestAnton' },
    ],
  }));
  await transaction.sign();
  await transaction.upload();
  console.log(transaction.id);

Query GraphQL

query {
    transactions(first: 50,
      tags: [
        {
          name: "App-Name",
          values: ["TestAnton"]
        }
      ]
    ) {
        edges {
            node {
                id
            }
        }
    }
}

Example txid: 8igzR2DFLyveeZ-8aps5srfE4jAXtUvf2en5Z-xlSiM

mncdg commented 2 years ago

error was in code