-
Notifications
You must be signed in to change notification settings - Fork 67
Array types #259
Comments
@yovanoc Can you please provide an example? I think it depends on the type (an array can be a nullable array ( If I understand correctly, please share an example of what you mean. |
I just sent you an email |
I checked this out and arrays are not Also, the schema doesn't allow nullable array by design for the same reasons as you have posted. Can you please send in the query or the screenshot where arrays are nullable? I tested using |
Ok now with latest alpha array are not nullable anymore, but an optional field in my schema in nested select is not marked as nullable. PS: Schema and query in our mail conversation. thanks |
You'are right I said nullability when a field is optional in the prisma schema and should be Query: const userTest = await photon.userTests.findOne({
where: {
id: "Example"
},
select: {
id: true,
globalConfig: {
select: {
accounts: {
select: {
username: true,
password: true,
config: {
select: {
data: true,
list: true
}
}
}
}
}
}
}
}); Here I don't get why Thanks |
Oh yes, you are right. account and config.list should not be marked a nullable field. I can confirm this as a bug now. Here is the reproduction for internal use: https://github.com/harshit-test-org/prisma-photon-259 |
Fixed in latest alpha. |
Please try again with |
AHAH yes thats PERFECT |
As you tell me @divyenduz I create an issue for a follow up on this one #256
Why array types are
| null
and not simple empty array?The text was updated successfully, but these errors were encountered: