Tag: thegraph

  • How to use dynamic variables using GraphQL in NEXTjs

    How to use dynamic variables using GraphQL in NEXTjs

    0 So I am trying to build an application in which I need to pass the account as queury. How can I achieve this? My proposed solution (which is not working obviously): let account = ‘0x74c7b157af4E5418F03eb928DF309cc98CE38E66’; const GET_ACTIVE_ITEM = gql` { activeFiles( first: 5 where: {Account_contains: ${account}} ) { id tokenId ipfsHash Account Privilege }…

  • How to use @live queries with graph-client?

    How to use @live queries with graph-client?

    0 I have successfully configured graph-client, and following the documentation, I updated my .graphclientrc.yml including the following: plugins: – pollingLive: defaultInterval: 1000 This is the query I am trying to execute, which works just fine without the @live decorator: query GetOrderById($id: Bytes!, $historyOrder: OrderDirection!) @live { orders(where: { id: $id }) { id requester tokenAddress…