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

TypeScript error on connected types #1035

Open
fullStackDataSolutions opened this issue Jan 26, 2021 · 1 comment
Open

TypeScript error on connected types #1035

fullStackDataSolutions opened this issue Jan 26, 2021 · 1 comment

Comments

@fullStackDataSolutions
Copy link

When I add a connected type I get the following error from Typescript:

An argument for 'opts' was not provided.

Here's an example of the code:

const user = objectType({
    name: TypeName,
    definition(t) {
        t.model.id();
        t.model.posts(); // error here
    }
});

@fullStackDataSolutions
Copy link
Author

This is preventing my from running "tsc build".

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