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

insertOne() does not accept name as document property #10

Open
lumaghg opened this issue Aug 3, 2022 · 0 comments
Open

insertOne() does not accept name as document property #10

lumaghg opened this issue Aug 3, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lumaghg
Copy link
Member

lumaghg commented Aug 3, 2022

[...]

  1. Also found another issue. When you define a insertOne in userResolver.ts (it's comment now), got another error:
error: TS2345 [ERROR]: Argument of type '{ name: any; last_name: any; dob: any; image_url: any; role: any; username: any; password: any; created_at: Date; updated_at: any; }' is not assignable to parameter of type 'InsertDocument<unknown>'.
  Object literal may only specify known properties, and 'name' does not exist in type 'InsertDocument<unknown>'.
      name: args.name,
      ~~~~~~~~~~~~~~~

Only happens when apply the mapping while run the tests, which I infer is a problem with the library.

Best regards,
Gabriel

Originally posted by @gmunumel in #9 (comment)

@lumaghg lumaghg self-assigned this Aug 3, 2022
@lumaghg lumaghg added the bug Something isn't working label Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant