indexer icon indicating copy to clipboard operation
indexer copied to clipboard

duplicate connections in connections GQL query

Open austinmilt opened this issue 2 years ago • 4 comments

The Graph QL connections query is returning duplicate entries, e.g. in the query below for everyone following the given address, ArtbyBethC (and the acommpanying wallet address) appears twice.

query {
	connections(to: "232PpcrPc6Kz7geafvbRzt5HnHP4kX88yvzUCN69WXQC", limit: 100, offset: 0) {
    from {
      twitterHandle
      address
    }
  } 
}
{
  "data": {
    "connections": [
      ...
      {
        "from": {
          "twitterHandle": "ArtbyBethC",
          "address": "Dk2qwKdEHGsLNmCsRVsxVRY8eFFGDyZxk8uhUtY3qNT1"
        }
      },
      {
        "from": {
          "twitterHandle": "ArtbyBethC",
          "address": "Dk2qwKdEHGsLNmCsRVsxVRY8eFFGDyZxk8uhUtY3qNT1"
        }
      },
...
}

likewise for everyone the address follows

query {
	connections(from: "232PpcrPc6Kz7geafvbRzt5HnHP4kX88yvzUCN69WXQC", limit: 100, offset: 0) {
    to {
      twitterHandle
      address
    }
  } 
}
...
     {
        "to": {
          "twitterHandle": "afkehaya",
          "address": "7r8oBPs3vNqgqEG8gnyPWUPgWuScxXyUxtmoLd1bg17F"
        }
      },
      {
        "to": {
          "twitterHandle": "afkehaya",
          "address": "7r8oBPs3vNqgqEG8gnyPWUPgWuScxXyUxtmoLd1bg17F"
        }
      },
...

austinmilt avatar May 27 '22 20:05 austinmilt

I believe this was fixed?

ray-kast avatar Jun 16 '22 23:06 ray-kast

Sorry, still not fixed. See e.g. entries for afkehaya using the query in the original post

austinmilt avatar Jun 21 '22 15:06 austinmilt

@dandlezzz for viz

kristianeboe avatar Jul 07 '22 15:07 kristianeboe

This is fixed on the frontend for now, moving it to backlog

kristianeboe avatar Jul 22 '22 12:07 kristianeboe