indexer icon indicating copy to clipboard operation
indexer copied to clipboard

Migrate from `urql` to `graphql-yoga`

Open saihaj opened this issue 1 year ago • 0 comments

In the refactor I started to clean things up one of the things we are doing is getting rid of URQL client. Today we have a non-traditional usage of URQL client when we are utilizing it for the API layer to serve. We export a client instance and share it in both indexer-agent and indexer-cli. There is no real GraphQL validation happening today and I found inconsistencies in the API which are not being caught.

The goal with this task is to refactor to use graphql-yoga and then tests utilities will be updated to use @graphql-tools/executor-http (see yoga docs here on testing)


I am hoping that cleaning up the URQL setup cause GraphQL client we fix our memory issues cause one of the known issues on URQL which feels like what we are seeing in #41 cause we are using the version of URQL which is suspected to have leaks.

saihaj avatar Jul 16 '24 16:07 saihaj