question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird required array typing

See original GitHub issue

Bug description

Currently the typing for a required array is:

type CalendarEventCreateattendeesInput = {
    set: Enumerable<InputJsonValue>
  }

type CalendarEvent {
  ...
  attendees?: CalendarEventCreateattendeesInput | Enumerable<InputJsonValue>
}

Expected behavior

The typing should be:

type CalendarEventCreateattendeesInput = {
    set: Enumerable<InputJsonValue>
  }

type CalendarEvent {
  ...
  attendees: CalendarEventCreateattendeesInput | Enumerable<InputJsonValue>
}

Environment & setup

  • OS: MacOs
  • Database: PostgreSQL
  • Node.js version: 14
  • Prisma version: 2.14.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timsuchanekcommented, Feb 8, 2021

Thanks a lot for reporting 🙏 This issue is fixed in the latest dev version of @prisma/client. You can try it out with npm i @prisma/client@dev.

In case it’s not fixed for you - please let us know and we’ll reopen this issue!

1reaction
pantharshit00commented, Jan 21, 2021

List being nullable got patched here today: https://github.com/prisma/prisma/issues/4808

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weird behavior of numpy array type setting - Stack Overflow
The desired data-type for the array. If not given, then the type will be determined as the minimum type required to hold the...
Read more >
into-array should not need type hints - Clojure Q&A
Currently into-array's return value needs type hinting in addition to having to specify the target class in the first place. Type hinting array...
Read more >
ak.Array — Awkward Array 2.0.0 documentation
High-level array that can contain data of any type. For most users, this is the only class in Awkward Array that matters: it...
Read more >
Arrays - The Modern JavaScript Tutorial
Arrays. Objects allow you to store keyed collections of values. That's fine. But quite often we find that we need an ordered collection, ......
Read more >
You don't know Bash: An introduction to Bash arrays
In this example, all the elements are numbers, but it need not be the case—arrays in Bash can contain both numbers and strings,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found