Roman Z.
11/21/2018, 7:30 AMtype User @db(name: "users")
{
id: ID! @id
name: String! @unique
property: Property! @relation(link: INLINE)
}
type Property @db(name: "properties")
{
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
propertyName: String!
users: [User!]! @relation(strategy: EMBED)
}
Currently I have this query that allows me to query users by name:
query {
user(where: {name: "john"}) {
id,
name,
property {
propertyName
}
}
}
But what I need is: to extend it to include filter
by propertyName
and seems like prisma's generator is not creating relational filters for me as in this example:
https://www.prisma.io/forum/t/graphql-query-structure-how-can-i-return-a-deeply-nested-array-up-top/455/2
pls halp 🙏Roman Z.
11/21/2018, 8:17 AMRoman Z.
11/21/2018, 8:18 AM@relation(strategy: EMBED)
in PropertyRoman Z.
11/21/2018, 8:18 AMProperty!
relationRoman Z.
11/21/2018, 8:19 AMnikolasburk
Roman Z.
11/21/2018, 9:04 AM