A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stackoverflow.com/questions/79624369/graphql-sequelize-and-usemaster below:

sequelize.js - graphql-sequelize and useMaster

I would like to know how to correctly use useMaster with graphql-sequelize.

I'm trying to force the query to go to the master database using this code:

before: (findOptions) => {
      const options = findOptions;
      options.useMaster = true;
      return options;
    }

However, even setting useMaster: true, the query still goes to the replica.

I'm also using dataloader-sequelize integrated with graphql-sequelize. Is there a correct way to make it work? Or is there any additional configuration needed to make useMaster respected?

Thanks!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4