Olaf
05/28/2019, 6:31 AMtype User {
id: ID!
first_name: String!
last_name: String!
email_address: String!
}
and would like to group first_name
and last_name
into a name
object that, when the user is queried, nests the two names like name: { first, last }
so I can do a name.first
etc. Can this be done without creating a 'name' table in the database? I.e. Simply at the Prisma interpretation level, not database. Thanks for any advice for converting my current (flat) structure.nuno
05/28/2019, 8:53 AMOlaf
05/28/2019, 11:25 AMfullname
, but rather nest the name details or (another example) email information, say if I store email_address
and email_verified
, I would like to know if I can make an email
type (just without creating another table for this type) that nests the two fields (e.g. email: { address, verified }
) instead of a flat structure.nuno
05/28/2019, 3:22 PMemail
type and the resolvers for it's fields