Benoit Ranque
02/13/2019, 2:50 AMtype Query {
posts: [Post]
}
type Post {
# this type is stored in my primary service
text: String
author: User!
}
type User {
# this type is stored in the primary service too
id: ID! @unique
posts: [Post]
accountId: ID! @unique
account: Account!
}
type Account {
# this type is stored in my secondary service
id: ID! @unique
username: String!
}
jangerhofer
02/13/2019, 5:14 AMjangerhofer
02/13/2019, 5:16 AMauthService
which points to a service at <https://prisma.myapp.com/auth>
and the other under userContentService
which points at <https://prisma.myapp.com/content>
.Benoit Ranque
02/13/2019, 3:35 PMcontent
service would fail if I created a new instance pointing to my auth
service?Benoit Ranque
02/13/2019, 3:36 PMBenoit Ranque
02/13/2019, 3:42 PM