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

Drizzle plugin -Schema property required #1335

Closed
olup opened this issue Nov 5, 2024 · 2 comments
Closed

Drizzle plugin -Schema property required #1335

olup opened this issue Nov 5, 2024 · 2 comments

Comments

@olup
Copy link

olup commented Nov 5, 2024

I had to add the schema property to the drizzle option - or else I would get an error Cannot convert undefined or null to object when creating my objects.
Maybe this should be documented ?

@hayes
Copy link
Owner

hayes commented Nov 5, 2024

The schema option is shown in the docs for installing the plugin (https://pothos-graphql.dev/docs/plugins/drizzle#installing) which has a link to the drizzle docs describing how to create a relational query builder:

The drizzle plugin is built on top of drizzles relational query builder, and requires that you define and configure all the relevant relations in your drizzle schema. See https://orm.drizzle.team/docs/rqb for detailed documentation on the relations API.

More than happy to accept PRs to improve the docs though

@hayes hayes closed this as completed Nov 5, 2024
@olup
Copy link
Author

olup commented Nov 6, 2024

Hey thanks for the quick reply and of course I can lend a hand. Thanks for this necessary library.

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

2 participants