Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using factorybot with node pg adapter #14

Open
HromayaHorse opened this issue Apr 11, 2022 · 0 comments
Open

Using factorybot with node pg adapter #14

HromayaHorse opened this issue Apr 11, 2022 · 0 comments

Comments

@HromayaHorse
Copy link

I would like to ask is it possible to use node pg adapter (postgree) with factorybot? Because it returns me error:
TypeError: factory.Client is not a constructor

when I try to connect factorybot to the adapter.

const factory = require('factory-bot').factory; const { Client } = require('pg'); const client = new FactoryBot.Client()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant