Weird required array typing
See original GitHub issueBug 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:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot for reporting 🙏 This issue is fixed in the latest dev version of
@prisma/client
. You can try it out withnpm i @prisma/client@dev
.In case it’s not fixed for you - please let us know and we’ll reopen this issue!
List being nullable got patched here today: https://github.com/prisma/prisma/issues/4808