prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

Mongodb array as embedded document #157

Open navneetgarggate6 opened 4 years ago

navneetgarggate6 commented 4 years ago

I want to embedded multiple sub document (array in user for location) every thing is working flne but prisma adming giving following error

[ { "message": "Cannot query field 'undefined' on type 'Query'. (line 2, column 3):\n undefined(first: 100, skip: 0) {\n ^", "locations": [ { "line": 2, "column": 3 } ] }, { "message": "Cannot query field 'undefinedConnection' on type 'Query'. Did you mean 'usersConnection'? (line 9, column 3):\n count: undefinedConnection {\n ^", "locations": [ { "line": 9, "column": 3 } ] } ]

type User { id: ID! @id name: String location: [Location!]! }

type Location @Embedded { id: ID! @id latitude: String! longitude: String! }