Jack Peterson
04/22/2018, 10:18 PMtype Person @model {
id : ID! @isUnique
emailAddresses: [String!]! @isUnique
}
For some reason I'm unable to query the emailAddresses because they're lists? It's not even a filter option?Lydia
04/22/2018, 10:34 PMpersons
function under type Query
on prisma.graphql
file. You will be able to filter them through 'where' parameter. (If you follow 'PersonWhereInput', you will be able to find directions on how to filter emailAddresses
.)Jack Peterson
04/22/2018, 10:35 PMnilan
04/23/2018, 9:23 AMquery { Person(id: "abc") { id } }
Jack Peterson
04/24/2018, 8:10 PMquery { Person( emailAddress: "<mailto:abc@xyz.com|abc@xyz.com>" ) { id } }
I'd like to query by emailAddress. Is that possible?nilan
04/24/2018, 8:11 PM